pub enum MfaType {
Totp,
Sms {
phone_number: String,
},
Email {
email_address: String,
},
Push {
device_id: String,
},
SecurityKey,
BackupCode,
}Expand description
Types of multi-factor authentication.
Variants§
Totp
Time-based one-time password (TOTP)
Sms
SMS verification code
Email verification code
Push
Push notification
SecurityKey
Hardware security key
BackupCode
Backup codes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MfaType
impl<'de> Deserialize<'de> for MfaType
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 MfaType
impl RefUnwindSafe for MfaType
impl Send for MfaType
impl Sync for MfaType
impl Unpin for MfaType
impl UnwindSafe for MfaType
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