From 265c8c81d1eb870a6149da5ce72556d44f57937f Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Mon, 24 Feb 2025 16:37:08 +0000 Subject: [PATCH] feat: we now got an ID of the club/soc the user is a part of --- src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ab3fc2c..c1683ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,9 +17,14 @@ struct WolvesResultSingle { /// Data returned for a member of a club/soc #[derive(Deserialize, Serialize, Debug)] 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 + #[serde(rename(deserialize = "cs_name"))] pub committee: String, + /// ID which uniquely identifies them on teh site pub member_id: String, /// First Name