feat: we now got an ID of the club/soc the user is a part of
This commit is contained in:
parent
74f00e3dcf
commit
265c8c81d1
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue