authifier 1.0.16

Opinionated Rust authentication library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn is_false(t: &bool) -> bool {
    !t
}

/// Invite ticket
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Invite {
    /// Invite code
    #[serde(rename = "_id")]
    pub id: String,
    /// Whether this invite ticket has been used
    #[serde(skip_serializing_if = "is_false", default)]
    pub used: bool,
    /// User ID that this invite was claimed by
    #[serde(skip_serializing_if = "Option::is_none")]
    pub claimed_by: Option<String>,
}