pub enum LinkedMfaMethod {
SmsMfaMethod(SmsMfaMethod),
TotpMfaMethod(TotpMfaMethod),
PasskeyMfaMethod(PasskeyMfaMethod),
}Expand description
A multi-factor authentication method linked to the user.
JSON schema
{
"title": "LinkedMfaMethod",
"description": "A multi-factor authentication method linked to the
user.",
"oneOf": [
{
"$ref": "#/components/schemas/SmsMfaMethod"
},
{
"$ref": "#/components/schemas/TotpMfaMethod"
},
{
"$ref": "#/components/schemas/PasskeyMfaMethod"
}
],
"x-stainless-model": "users.linked_mfa_method"
}Variants§
Trait Implementations§
Source§impl Clone for LinkedMfaMethod
impl Clone for LinkedMfaMethod
Source§fn clone(&self) -> LinkedMfaMethod
fn clone(&self) -> LinkedMfaMethod
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 LinkedMfaMethod
impl Debug for LinkedMfaMethod
Source§impl<'de> Deserialize<'de> for LinkedMfaMethod
impl<'de> Deserialize<'de> for LinkedMfaMethod
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
Source§impl From<&LinkedMfaMethod> for LinkedMfaMethod
impl From<&LinkedMfaMethod> for LinkedMfaMethod
Source§fn from(value: &LinkedMfaMethod) -> Self
fn from(value: &LinkedMfaMethod) -> Self
Converts to this type from the input type.
Source§impl From<PasskeyMfaMethod> for LinkedMfaMethod
impl From<PasskeyMfaMethod> for LinkedMfaMethod
Source§fn from(value: PasskeyMfaMethod) -> Self
fn from(value: PasskeyMfaMethod) -> Self
Converts to this type from the input type.
Source§impl From<SmsMfaMethod> for LinkedMfaMethod
impl From<SmsMfaMethod> for LinkedMfaMethod
Source§fn from(value: SmsMfaMethod) -> Self
fn from(value: SmsMfaMethod) -> Self
Converts to this type from the input type.
Source§impl From<TotpMfaMethod> for LinkedMfaMethod
impl From<TotpMfaMethod> for LinkedMfaMethod
Source§fn from(value: TotpMfaMethod) -> Self
fn from(value: TotpMfaMethod) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinkedMfaMethod
impl RefUnwindSafe for LinkedMfaMethod
impl Send for LinkedMfaMethod
impl Sync for LinkedMfaMethod
impl Unpin for LinkedMfaMethod
impl UnsafeUnpin for LinkedMfaMethod
impl UnwindSafe for LinkedMfaMethod
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