Skip to main content

User

Type Alias User 

Source
pub type User = SimpleUser;
Expand description

Type alias for backwards compatibility

DEPRECATED: Use SimpleUser or implement AuthenticatableUser trait.

Aliased Type§

pub struct User {
Show 15 fields pub id: Uuid, pub email: String, pub password_hash: String, pub is_active: bool, pub is_locked: bool, pub roles: Vec<String>, pub two_factor_enabled: bool, pub two_factor_methods: Vec<String>, pub account_expires_at: Option<DateTime<Utc>>, pub requires_password_change: bool, pub last_login_at: Option<DateTime<Utc>>, pub failed_login_attempts: u32, pub locked_until: Option<DateTime<Utc>>, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>,
}

Fields§

§id: Uuid§email: String§password_hash: String§is_active: bool§is_locked: bool§roles: Vec<String>§two_factor_enabled: bool§two_factor_methods: Vec<String>§account_expires_at: Option<DateTime<Utc>>§requires_password_change: bool§last_login_at: Option<DateTime<Utc>>§failed_login_attempts: u32§locked_until: Option<DateTime<Utc>>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>