authress 0.1.66

The Authress SDK for RUST - provides authorization as a service with fully compatible REST apis. Authentication / Authorization / User Identity Roles / Permissions / Policies
Documentation
/// Invite : The user invite used to invite users to your application or to Authress as an admin.



#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Invite {
    /// The unique identifier for the invite. Use this ID to accept the invite.
    #[serde(rename = "inviteId")]
    pub invite_id: String,
    /// A list of statements which match roles to resources. The invited user will all statements apply to them
    #[serde(rename = "statements")]
    pub statements: Vec<crate::models::InviteStatement>,
    #[serde(rename = "links", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub links: Option<Option<Box<crate::models::Links>>>,
}

impl Invite {
    /// The user invite used to invite users to your application or to Authress as an admin.
    pub fn new(invite_id: String, statements: Vec<crate::models::InviteStatement>) -> Invite {
        Invite {
            invite_id,
            statements,
            links: None,
        }
    }
}