pub struct TwoFactorDisableOutcome { /* private fields */ }Expand description
Result returned after attempting to disable two-factor authentication.
Implementations§
Source§impl TwoFactorDisableOutcome
impl TwoFactorDisableOutcome
Sourcepub fn new(success: bool, message: Option<AuthMessage>) -> Self
pub fn new(success: bool, message: Option<AuthMessage>) -> Self
Creates a disable outcome with optional translatable feedback.
Sourcepub fn message(&self) -> Option<&AuthMessage>
pub fn message(&self) -> Option<&AuthMessage>
Returns optional translatable feedback.
Trait Implementations§
Source§impl Clone for TwoFactorDisableOutcome
impl Clone for TwoFactorDisableOutcome
Source§impl Debug for TwoFactorDisableOutcome
impl Debug for TwoFactorDisableOutcome
Source§impl<'de> Deserialize<'de> for TwoFactorDisableOutcome
impl<'de> Deserialize<'de> for TwoFactorDisableOutcome
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 TwoFactorDisableOutcome
Source§impl PartialEq for TwoFactorDisableOutcome
impl PartialEq for TwoFactorDisableOutcome
Source§impl Serialize for TwoFactorDisableOutcome
impl Serialize for TwoFactorDisableOutcome
impl StructuralPartialEq for TwoFactorDisableOutcome
Auto Trait Implementations§
impl Freeze for TwoFactorDisableOutcome
impl RefUnwindSafe for TwoFactorDisableOutcome
impl Send for TwoFactorDisableOutcome
impl Sync for TwoFactorDisableOutcome
impl Unpin for TwoFactorDisableOutcome
impl UnsafeUnpin for TwoFactorDisableOutcome
impl UnwindSafe for TwoFactorDisableOutcome
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