pub struct EnrollmentRecord {
pub id: String,
pub user_id: String,
pub tenant_id: TenantId,
pub factor_id: String,
pub status: EnrollmentStatus,
pub display_name: Option<String>,
pub metadata: Value,
pub enrolled_at: SystemTime,
pub last_used_at: Option<SystemTime>,
pub use_count: u64,
}Expand description
Tracks which factors a user has enrolled in
Fields§
§id: String§user_id: String§tenant_id: TenantId§factor_id: String§status: EnrollmentStatus§display_name: Option<String>§metadata: Value§enrolled_at: SystemTime§last_used_at: Option<SystemTime>§use_count: u64Trait Implementations§
Source§impl Clone for EnrollmentRecord
impl Clone for EnrollmentRecord
Source§fn clone(&self) -> EnrollmentRecord
fn clone(&self) -> EnrollmentRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnrollmentRecord
impl Debug for EnrollmentRecord
Source§impl<'de> Deserialize<'de> for EnrollmentRecord
impl<'de> Deserialize<'de> for EnrollmentRecord
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 EnrollmentRecord
impl RefUnwindSafe for EnrollmentRecord
impl Send for EnrollmentRecord
impl Sync for EnrollmentRecord
impl Unpin for EnrollmentRecord
impl UnsafeUnpin for EnrollmentRecord
impl UnwindSafe for EnrollmentRecord
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