pub struct User {Show 20 fields
pub id: Uuid,
pub email: String,
pub email_verified: bool,
pub password_hash: String,
pub display_name: Option<String>,
pub avatar_url: Option<String>,
pub roles: Vec<String>,
pub permissions: Vec<String>,
pub metadata: HashMap<String, Value>,
pub mfa_enabled: bool,
pub mfa_secret: Option<String>,
pub webauthn_credentials: Vec<WebAuthnCredential>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub last_login_at: Option<DateTime<Utc>>,
pub login_count: u64,
pub failed_login_attempts: u32,
pub locked_until: Option<DateTime<Utc>>,
pub password_changed_at: DateTime<Utc>,
pub status: UserStatus,
}Expand description
User account
Fields§
§id: Uuid§email: String§email_verified: bool§password_hash: String§display_name: Option<String>§avatar_url: Option<String>§roles: Vec<String>§permissions: Vec<String>§metadata: HashMap<String, Value>§mfa_enabled: bool§mfa_secret: Option<String>§webauthn_credentials: Vec<WebAuthnCredential>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§last_login_at: Option<DateTime<Utc>>§login_count: u64§failed_login_attempts: u32§locked_until: Option<DateTime<Utc>>§password_changed_at: DateTime<Utc>§status: UserStatusTrait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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