pub struct TwoFactorMethod {
pub authenticator: Option<Box<AuthenticatorConfiguration>>,
pub email: Option<String>,
pub id: Option<String>,
pub last_used: Option<bool>,
pub method: Option<String>,
pub mobile_phone: Option<String>,
pub secret: Option<String>,
}
Expand description
TwoFactorMethod :
Fields§
§authenticator: Option<Box<AuthenticatorConfiguration>>
§email: Option<String>
§id: Option<String>
§last_used: Option<bool>
§method: Option<String>
§mobile_phone: Option<String>
§secret: Option<String>
Implementations§
source§impl TwoFactorMethod
impl TwoFactorMethod
sourcepub fn new() -> TwoFactorMethod
pub fn new() -> TwoFactorMethod
Trait Implementations§
source§impl Clone for TwoFactorMethod
impl Clone for TwoFactorMethod
source§fn clone(&self) -> TwoFactorMethod
fn clone(&self) -> TwoFactorMethod
Returns a copy of the value. Read more
1.0.0 · 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 TwoFactorMethod
impl Debug for TwoFactorMethod
source§impl Default for TwoFactorMethod
impl Default for TwoFactorMethod
source§fn default() -> TwoFactorMethod
fn default() -> TwoFactorMethod
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TwoFactorMethod
impl<'de> Deserialize<'de> for TwoFactorMethod
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 PartialEq for TwoFactorMethod
impl PartialEq for TwoFactorMethod
source§fn eq(&self, other: &TwoFactorMethod) -> bool
fn eq(&self, other: &TwoFactorMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TwoFactorMethod
impl Serialize for TwoFactorMethod
impl StructuralPartialEq for TwoFactorMethod
Auto Trait Implementations§
impl RefUnwindSafe for TwoFactorMethod
impl Send for TwoFactorMethod
impl Sync for TwoFactorMethod
impl Unpin for TwoFactorMethod
impl UnwindSafe for TwoFactorMethod
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