pub struct TwoFactorVerificationOutcome { /* private fields */ }Expand description
Result returned after verifying a two-factor setup code.
Implementations§
Source§impl TwoFactorVerificationOutcome
impl TwoFactorVerificationOutcome
Sourcepub fn new(success: bool, message: Option<AuthMessage>) -> Self
pub fn new(success: bool, message: Option<AuthMessage>) -> Self
Creates a verification 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 TwoFactorVerificationOutcome
impl Clone for TwoFactorVerificationOutcome
Source§impl Debug for TwoFactorVerificationOutcome
impl Debug for TwoFactorVerificationOutcome
Source§impl<'de> Deserialize<'de> for TwoFactorVerificationOutcome
impl<'de> Deserialize<'de> for TwoFactorVerificationOutcome
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 TwoFactorVerificationOutcome
impl StructuralPartialEq for TwoFactorVerificationOutcome
Auto Trait Implementations§
impl Freeze for TwoFactorVerificationOutcome
impl RefUnwindSafe for TwoFactorVerificationOutcome
impl Send for TwoFactorVerificationOutcome
impl Sync for TwoFactorVerificationOutcome
impl Unpin for TwoFactorVerificationOutcome
impl UnsafeUnpin for TwoFactorVerificationOutcome
impl UnwindSafe for TwoFactorVerificationOutcome
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