#[repr(i32)]pub enum MFAFactorType {
MFA_FACTOR_TYPE_UNSPECIFIED = 0,
MFA_FACTOR_TYPE_TOTP = 1,
MFA_FACTOR_TYPE_PASSKEY = 2,
MFA_FACTOR_TYPE_RECOVERY_CODE = 3,
}Expand description
Type of MFA factor or one-time recovery method.
Variants§
MFA_FACTOR_TYPE_UNSPECIFIED = 0
No MFA factor type was specified.
MFA_FACTOR_TYPE_TOTP = 1
Time-based one-time password from an authenticator app.
MFA_FACTOR_TYPE_PASSKEY = 2
Passkey factor using device or hardware-key authentication.
MFA_FACTOR_TYPE_RECOVERY_CODE = 3
One-time recovery code.
Implementations§
Source§impl MFAFactorType
impl MFAFactorType
Sourcepub const Unspecified: Self = Self::MFA_FACTOR_TYPE_UNSPECIFIED
pub const Unspecified: Self = Self::MFA_FACTOR_TYPE_UNSPECIFIED
Idiomatic alias for Self::MFA_FACTOR_TYPE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Totp: Self = Self::MFA_FACTOR_TYPE_TOTP
pub const Totp: Self = Self::MFA_FACTOR_TYPE_TOTP
Idiomatic alias for Self::MFA_FACTOR_TYPE_TOTP; Debug prints the variant name.
Sourcepub const Passkey: Self = Self::MFA_FACTOR_TYPE_PASSKEY
pub const Passkey: Self = Self::MFA_FACTOR_TYPE_PASSKEY
Idiomatic alias for Self::MFA_FACTOR_TYPE_PASSKEY; Debug prints the variant name.
Sourcepub const RecoveryCode: Self = Self::MFA_FACTOR_TYPE_RECOVERY_CODE
pub const RecoveryCode: Self = Self::MFA_FACTOR_TYPE_RECOVERY_CODE
Idiomatic alias for Self::MFA_FACTOR_TYPE_RECOVERY_CODE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for MFAFactorType
impl Clone for MFAFactorType
Source§fn clone(&self) -> MFAFactorType
fn clone(&self) -> MFAFactorType
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 moreimpl Copy for MFAFactorType
Source§impl Debug for MFAFactorType
impl Debug for MFAFactorType
Source§impl Default for MFAFactorType
impl Default for MFAFactorType
Source§impl<'de> Deserialize<'de> for MFAFactorType
impl<'de> Deserialize<'de> for MFAFactorType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for MFAFactorType
impl Enumeration for MFAFactorType
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for MFAFactorType
Source§impl Hash for MFAFactorType
impl Hash for MFAFactorType
Source§impl PartialEq for MFAFactorType
impl PartialEq for MFAFactorType
Source§impl ProtoElemJson for MFAFactorType
impl ProtoElemJson for MFAFactorType
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
Source§impl Serialize for MFAFactorType
impl Serialize for MFAFactorType
impl StructuralPartialEq for MFAFactorType
Auto Trait Implementations§
impl Freeze for MFAFactorType
impl RefUnwindSafe for MFAFactorType
impl Send for MFAFactorType
impl Sync for MFAFactorType
impl Unpin for MFAFactorType
impl UnsafeUnpin for MFAFactorType
impl UnwindSafe for MFAFactorType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.