pub struct DisableTwoFactorForm { /* private fields */ }Expand description
Raw credentials accepted when disabling two-factor authentication.
At least one of the verification code or password must be present. Its
custom fmt::Debug implementation exposes only whether values exist.
Implementations§
Trait Implementations§
Source§impl Clone for DisableTwoFactorForm
impl Clone for DisableTwoFactorForm
Source§impl Debug for DisableTwoFactorForm
impl Debug for DisableTwoFactorForm
Source§impl Default for DisableTwoFactorForm
impl Default for DisableTwoFactorForm
Source§impl<'de> Deserialize<'de> for DisableTwoFactorForm
impl<'de> Deserialize<'de> for DisableTwoFactorForm
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
impl Eq for DisableTwoFactorForm
Source§impl PartialEq for DisableTwoFactorForm
impl PartialEq for DisableTwoFactorForm
Source§impl Serialize for DisableTwoFactorForm
impl Serialize for DisableTwoFactorForm
impl StructuralPartialEq for DisableTwoFactorForm
Source§impl TryFrom<DisableTwoFactorForm> for ParsedDisableTwoFactor
impl TryFrom<DisableTwoFactorForm> for ParsedDisableTwoFactor
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(form: DisableTwoFactorForm) -> Result<Self, ParseError>
fn try_from(form: DisableTwoFactorForm) -> Result<Self, ParseError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DisableTwoFactorForm
impl RefUnwindSafe for DisableTwoFactorForm
impl Send for DisableTwoFactorForm
impl Sync for DisableTwoFactorForm
impl Unpin for DisableTwoFactorForm
impl UnsafeUnpin for DisableTwoFactorForm
impl UnwindSafe for DisableTwoFactorForm
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