pub enum AuthScheme {
BearerJwt,
ApiKey,
Basic,
Custom,
}Expand description
Authentication mechanism that verified an crate::AuthPrincipal.
Variants§
BearerJwt
JSON Web Token (Authorization: Bearer <jwt>).
ApiKey
Static or rotated API key header (for example X-Api-Key).
Basic
HTTP Basic credentials (Authorization: Basic <base64>).
Custom
Application-defined custom authenticator scheme.
Trait Implementations§
Source§impl Clone for AuthScheme
impl Clone for AuthScheme
impl Copy for AuthScheme
Source§impl Debug for AuthScheme
impl Debug for AuthScheme
Source§impl Default for AuthScheme
impl Default for AuthScheme
impl Eq for AuthScheme
Source§impl PartialEq for AuthScheme
impl PartialEq for AuthScheme
impl StructuralPartialEq for AuthScheme
Auto Trait Implementations§
impl Forget for AuthScheme
impl Freeze for AuthScheme
impl Move for AuthScheme
impl RefUnwindSafe for AuthScheme
impl Send for AuthScheme
impl Sync for AuthScheme
impl Unpin for AuthScheme
impl UnsafeUnpin for AuthScheme
impl UnwindSafe for AuthScheme
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.