pub struct BearerAuthScheme { /* private fields */ }
Trait Implementations§
Source§impl Debug for BearerAuthScheme
impl Debug for BearerAuthScheme
Source§impl Default for BearerAuthScheme
impl Default for BearerAuthScheme
Source§fn default() -> BearerAuthScheme
fn default() -> BearerAuthScheme
Returns the “default value” for a type. Read more
Source§impl<User: Send + Sync + 'static> Scheme<User> for BearerAuthScheme
impl<User: Send + Sync + 'static> Scheme<User> for BearerAuthScheme
type Request = BearerAuthRequest
fn authenticate<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, state: &'life1 S, auth_param: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<User>>> + Send + 'async_trait>>
fn scheme_name() -> &'static str
fn should_401_on_multiple_values() -> bool
fn should_403_on_bad_auth() -> bool
fn header_name() -> &'static str
Auto Trait Implementations§
impl Freeze for BearerAuthScheme
impl RefUnwindSafe for BearerAuthScheme
impl Send for BearerAuthScheme
impl Sync for BearerAuthScheme
impl Unpin for BearerAuthScheme
impl UnwindSafe for BearerAuthScheme
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