pub struct AuthMiddleware;
Expand description
Authentication middleware configuration
Implementations§
Source§impl AuthMiddleware
impl AuthMiddleware
pub fn bearer(api_key: impl Into<String>) -> MiddlewareConfig
pub fn basic_auth( username: impl Into<String>, password: impl Into<String>, ) -> MiddlewareConfig
Auto Trait Implementations§
impl Freeze for AuthMiddleware
impl RefUnwindSafe for AuthMiddleware
impl Send for AuthMiddleware
impl Sync for AuthMiddleware
impl Unpin for AuthMiddleware
impl UnwindSafe for AuthMiddleware
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