pub enum Authentication {
Bot {
token: String,
},
User {
session_token: String,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl<'a> From<&'a Authentication> for Authentication<'a>
impl<'a> From<&'a Authentication> for Authentication<'a>
Source§fn from(auth: &'a Authentication) -> Self
fn from(auth: &'a Authentication) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a Authentication> for HttpAuthentication<'a>
impl<'a> From<&'a Authentication> for HttpAuthentication<'a>
Source§fn from(auth: &'a Authentication) -> Self
fn from(auth: &'a Authentication) -> Self
Converts to this type from the input type.
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