pub enum Authentication {
SessionToken(String),
BotToken(String),
ValidMfaTicket(String),
UnvalidatedMfaTicket(String),
None,
}Variants§
Implementations§
Trait Implementations§
source§impl Clone for Authentication
impl Clone for Authentication
source§fn clone(&self) -> Authentication
fn clone(&self) -> Authentication
Returns a copy 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 Authentication
impl Debug for Authentication
source§impl Hash for Authentication
impl Hash for Authentication
source§impl Ord for Authentication
impl Ord for Authentication
source§fn cmp(&self, other: &Authentication) -> Ordering
fn cmp(&self, other: &Authentication) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<Authentication> for Authentication
impl PartialEq<Authentication> for Authentication
source§fn eq(&self, other: &Authentication) -> bool
fn eq(&self, other: &Authentication) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<Authentication> for Authentication
impl PartialOrd<Authentication> for Authentication
source§fn partial_cmp(&self, other: &Authentication) -> Option<Ordering>
fn partial_cmp(&self, other: &Authentication) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Authentication
impl StructuralEq for Authentication
impl StructuralPartialEq for Authentication
Auto Trait Implementations§
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