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
/// User : A user object that identifies a user.



#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct User {
    #[serde(rename = "userId")]
    pub user_id: String,
}

impl User {
    /// A user object that identifies a user.
    pub fn new(user_id: String) -> User {
        User {
            user_id,
        }
    }
}