pub enum Authentication {
Initialization(Initialization),
StartMethod(StartMethod),
Challenge(Challenge),
Verification(Verification),
Info(Info),
Error(Error),
Finished,
}
Expand description
Represents messages from an authenticator that act as initiators such as providing a challenge, verifying information, presenting information, or highlighting an error
Variants§
Initialization(Initialization)
Indicates the beginning of authentication, providing available methods
StartMethod(StartMethod)
Indicates that authentication is starting for the specific method
Challenge(Challenge)
Issues a challenge to be answered
Verification(Verification)
Requests verification of some text
Info(Info)
Reports some information associated with authentication
Error(Error)
Reports an error occurrred during authentication
Finished
Indicates that the authentication of all methods is finished
Trait Implementations§
Source§impl Clone for Authentication
impl Clone for Authentication
Source§fn clone(&self) -> Authentication
fn clone(&self) -> Authentication
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Authentication
impl Debug for Authentication
Source§impl<'de> Deserialize<'de> for Authentication
impl<'de> Deserialize<'de> for Authentication
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 From<()> for Authentication
impl From<()> for Authentication
Source§fn from(original: ()) -> Authentication
fn from(original: ()) -> Authentication
Converts to this type from the input type.
Source§impl From<Challenge> for Authentication
impl From<Challenge> for Authentication
Source§fn from(original: Challenge) -> Authentication
fn from(original: Challenge) -> Authentication
Converts to this type from the input type.
Source§impl From<Error> for Authentication
impl From<Error> for Authentication
Source§fn from(original: Error) -> Authentication
fn from(original: Error) -> Authentication
Converts to this type from the input type.
Source§impl From<Info> for Authentication
impl From<Info> for Authentication
Source§fn from(original: Info) -> Authentication
fn from(original: Info) -> Authentication
Converts to this type from the input type.
Source§impl From<Initialization> for Authentication
impl From<Initialization> for Authentication
Source§fn from(original: Initialization) -> Authentication
fn from(original: Initialization) -> Authentication
Converts to this type from the input type.
Source§impl From<StartMethod> for Authentication
impl From<StartMethod> for Authentication
Source§fn from(original: StartMethod) -> Authentication
fn from(original: StartMethod) -> Authentication
Converts to this type from the input type.
Source§impl From<Verification> for Authentication
impl From<Verification> for Authentication
Source§fn from(original: Verification) -> Authentication
fn from(original: Verification) -> Authentication
Converts to this type from the input type.
Source§impl PartialEq for Authentication
impl PartialEq for Authentication
Source§impl Serialize for Authentication
impl Serialize for Authentication
impl Eq for Authentication
impl StructuralPartialEq for Authentication
Auto Trait Implementations§
impl Freeze for Authentication
impl RefUnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnwindSafe for Authentication
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