pub enum AuthScheme {
None(NoAuthentication),
AccessToken(BearerAuthentication<TokenCredential>),
Basic(BasicAuthentication<UsernamePasswordCredential>),
JWT(BearerAuthentication<JsonWebTokenCredential>),
}
Variants§
None(NoAuthentication)
AccessToken(BearerAuthentication<TokenCredential>)
Basic(BasicAuthentication<UsernamePasswordCredential>)
JWT(BearerAuthentication<JsonWebTokenCredential>)
Trait Implementations§
Source§impl AuthenticationProtocol for AuthScheme
impl AuthenticationProtocol for AuthScheme
type Request = Request
type Response = Response
type Error = Error
fn step( &self, ) -> Result<Option<AuthenticationStep<Self::Request>>, AuthenticError>
fn respond(&mut self, response: Result<Self::Response, Self::Error>)
fn has_completed( &mut self, response: &Self::Response, ) -> Result<bool, AuthenticError>
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 AuthScheme
impl RefUnwindSafe for AuthScheme
impl Send for AuthScheme
impl Sync for AuthScheme
impl Unpin for AuthScheme
impl UnwindSafe for AuthScheme
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