Skip to main content

UserInfo

Type Alias UserInfo 

Source
pub type UserInfo = UserInfo;
Expand description

Basic user information. Alias for the canonical crate::auth::UserInfo.

Aliased Type§

pub struct UserInfo {
    pub id: String,
    pub username: String,
    pub email: Option<String>,
    pub name: Option<String>,
    pub roles: Roles,
    pub active: bool,
    pub email_verified: bool,
    pub attributes: UserAttributes,
}

Fields§

§id: String

User ID

§username: String

Username

§email: Option<String>

Email address

§name: Option<String>

Display name

§roles: Roles

User roles

§active: bool

Whether the user is active

§email_verified: bool

Whether the user’s email address has been verified

§attributes: UserAttributes

Additional user attributes