feat: we now got an ID of the club/soc the user is a part of
All checks were successful
On_Push / lint_fmt (push) Successful in 54s
On_Push / test (push) Successful in 1m30s
On_Push / lint_clippy (push) Successful in 3m49s
On_Push / build (push) Successful in 11s

This commit is contained in:
silver 2025-02-24 16:37:08 +00:00
parent 74f00e3dcf
commit 265c8c81d1
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -17,9 +17,14 @@ struct WolvesResultSingle<T> {
/// Data returned for a member of a club/soc /// Data returned for a member of a club/soc
#[derive(Deserialize, Serialize, Debug)] #[derive(Deserialize, Serialize, Debug)]
pub struct WolvesUser { pub struct WolvesUser {
// TODO: Might be worth trying to get this replaced with the club/soc ID? /// ID of the committee the user belongs to.
/// Might be a tad wasteful to have it for every user but that isnt a problem
#[serde(rename(deserialize = "cs_id"), deserialize_with = "de_string_i64")]
pub committee_id: i64,
/// Club/Soc the user is a member of /// Club/Soc the user is a member of
#[serde(rename(deserialize = "cs_name"))]
pub committee: String, pub committee: String,
/// ID which uniquely identifies them on teh site /// ID which uniquely identifies them on teh site
pub member_id: String, pub member_id: String,
/// First Name /// First Name