pub struct AuthenticationFactor {
pub object: String,
pub id: String,
pub type_: AuthenticationFactorType,
pub user_id: Option<String>,
pub sms: Option<AuthenticationFactorSms>,
pub totp: Option<AuthenticationFactorTotp>,
pub created_at: String,
pub updated_at: String,
}Fields§
§object: StringDistinguishes the authentication factor object.
id: StringThe unique ID of the factor.
type_: AuthenticationFactorTypeThe type of the factor to enroll.
user_id: Option<String>The ID of the user.
sms: Option<AuthenticationFactorSms>SMS-based authentication factor details.
totp: Option<AuthenticationFactorTotp>TOTP-based authentication factor details.
created_at: StringAn ISO 8601 timestamp.
updated_at: StringAn ISO 8601 timestamp.
Trait Implementations§
Source§impl Clone for AuthenticationFactor
impl Clone for AuthenticationFactor
Source§fn clone(&self) -> AuthenticationFactor
fn clone(&self) -> AuthenticationFactor
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 AuthenticationFactor
impl Debug for AuthenticationFactor
Source§impl<'de> Deserialize<'de> for AuthenticationFactor
impl<'de> Deserialize<'de> for AuthenticationFactor
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 AuthenticationFactor
impl RefUnwindSafe for AuthenticationFactor
impl Send for AuthenticationFactor
impl Sync for AuthenticationFactor
impl Unpin for AuthenticationFactor
impl UnsafeUnpin for AuthenticationFactor
impl UnwindSafe for AuthenticationFactor
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