pub struct ConfirmationMethod(/* private fields */);Expand description
A method that can be used to confirm a login
Implementations§
Source§impl ConfirmationMethod
impl ConfirmationMethod
Sourcepub fn confirmation_type(&self) -> &'static str
pub fn confirmation_type(&self) -> &'static str
Get the human-readable confirmation type
Sourcepub fn confirmation_details(&self) -> &str
pub fn confirmation_details(&self) -> &str
Get the server-provided message for the confirmation
Sourcepub fn action_required(&self) -> bool
pub fn action_required(&self) -> bool
Is any action required to confirm the login
Sourcepub fn class(&self) -> ConfirmationMethodClass
pub fn class(&self) -> ConfirmationMethodClass
Get the class of the confirmation
Sourcepub fn token_type(&self) -> Option<GuardTokenType>
pub fn token_type(&self) -> Option<GuardTokenType>
Get the token type required for the confirmation, if the confirmation asks for a code
Trait Implementations§
Source§impl Clone for ConfirmationMethod
impl Clone for ConfirmationMethod
Source§fn clone(&self) -> ConfirmationMethod
fn clone(&self) -> ConfirmationMethod
Returns a duplicate 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 ConfirmationMethod
impl Debug for ConfirmationMethod
Source§impl From<CAuthentication_AllowedConfirmation> for ConfirmationMethod
impl From<CAuthentication_AllowedConfirmation> for ConfirmationMethod
Source§fn from(value: CAuthentication_AllowedConfirmation) -> Self
fn from(value: CAuthentication_AllowedConfirmation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConfirmationMethod
impl RefUnwindSafe for ConfirmationMethod
impl Send for ConfirmationMethod
impl Sync for ConfirmationMethod
impl Unpin for ConfirmationMethod
impl UnwindSafe for ConfirmationMethod
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