pub enum Authentication {
None,
AccessToken(Arc<TokenCredential>),
Basic(Arc<UsernamePasswordCredential>),
JWT(Arc<JsonWebTokenCredential>),
}
Variants§
None
AccessToken(Arc<TokenCredential>)
Basic(Arc<UsernamePasswordCredential>)
JWT(Arc<JsonWebTokenCredential>)
Trait Implementations§
Source§impl From<&Authentication> for AuthScheme
impl From<&Authentication> for AuthScheme
Source§fn from(authentication: &Authentication) -> Self
fn from(authentication: &Authentication) -> Self
Converts to this type from the input type.
Source§impl From<&Authentication> for AuthScheme
impl From<&Authentication> for AuthScheme
Source§fn from(authentication: &Authentication) -> Self
fn from(authentication: &Authentication) -> Self
Converts to this type from the input type.
Source§impl From<&Authentication> for AuthScheme
impl From<&Authentication> for AuthScheme
Source§fn from(authentication: &Authentication) -> Self
fn from(authentication: &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