pub struct BasicAuthScheme;
Trait Implementations§
Source§impl Debug for BasicAuthScheme
impl Debug for BasicAuthScheme
Source§impl Default for BasicAuthScheme
impl Default for BasicAuthScheme
Source§fn default() -> BasicAuthScheme
fn default() -> BasicAuthScheme
Returns the “default value” for a type. Read more
Source§impl<User: Send + Sync + 'static> Scheme<User> for BasicAuthScheme
impl<User: Send + Sync + 'static> Scheme<User> for BasicAuthScheme
type Request = BasicAuthRequest
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 BasicAuthScheme
impl RefUnwindSafe for BasicAuthScheme
impl Send for BasicAuthScheme
impl Sync for BasicAuthScheme
impl Unpin for BasicAuthScheme
impl UnwindSafe for BasicAuthScheme
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