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
/// UserIdentityCollection : A collection of user identities



#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserIdentityCollection {
    /// A list of users
    #[serde(rename = "users")]
    pub users: Vec<crate::models::UserIdentity>,
    #[serde(rename = "pagination", skip_serializing_if = "Option::is_none")]
    pub pagination: Option<Box<crate::models::Pagination>>,
    #[serde(rename = "links")]
    pub links: Box<crate::models::CollectionLinks>,
}

impl UserIdentityCollection {
    /// A collection of user identities
    pub fn new(users: Vec<crate::models::UserIdentity>, links: crate::models::CollectionLinks) -> UserIdentityCollection {
        UserIdentityCollection {
            users,
            pagination: None,
            links: Box::new(links),
        }
    }
}