pub struct EnrolledFactor {
pub factor_id: FactorId,
pub user_id: UserId,
pub factor_type: FactorType,
pub enrolled_at: DateTime<Utc>,
pub last_used_at: Option<DateTime<Utc>>,
pub is_primary: bool,
}Expand description
Factor enrollment information
Fields§
§factor_id: FactorId§user_id: UserId§factor_type: FactorType§enrolled_at: DateTime<Utc>§last_used_at: Option<DateTime<Utc>>§is_primary: boolImplementations§
Source§impl EnrolledFactor
impl EnrolledFactor
Sourcepub fn strength_score(&self) -> u8
pub fn strength_score(&self) -> u8
Get the strength score of this factor
Sourcepub fn classification(&self) -> FactorClass
pub fn classification(&self) -> FactorClass
Get security classification
Sourcepub fn is_phishing_resistant(&self) -> bool
pub fn is_phishing_resistant(&self) -> bool
Check if this factor is phishing-resistant
Trait Implementations§
Source§impl Clone for EnrolledFactor
impl Clone for EnrolledFactor
Source§fn clone(&self) -> EnrolledFactor
fn clone(&self) -> EnrolledFactor
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 EnrolledFactor
impl Debug for EnrolledFactor
Source§impl<'de> Deserialize<'de> for EnrolledFactor
impl<'de> Deserialize<'de> for EnrolledFactor
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 EnrolledFactor
impl RefUnwindSafe for EnrolledFactor
impl Send for EnrolledFactor
impl Sync for EnrolledFactor
impl Unpin for EnrolledFactor
impl UnsafeUnpin for EnrolledFactor
impl UnwindSafe for EnrolledFactor
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