pub struct UserInfo {
pub id: String,
pub username: String,
pub email: Option<String>,
pub name: Option<String>,
pub roles: Vec<String>,
pub active: bool,
pub attributes: HashMap<String, Value>,
}Expand description
Information about a user.
Fields§
§id: StringUser ID
username: StringUsername
email: Option<String>Email address
name: Option<String>Display name
roles: Vec<String>User roles
active: boolWhether the user is active
attributes: HashMap<String, Value>Additional user attributes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more