pub struct AuthMiddleware {
pub required: bool,
}Expand description
Authentication middleware.
Fields§
§required: boolTrait Implementations§
Source§impl Middleware for AuthMiddleware
impl Middleware for AuthMiddleware
fn name(&self) -> &str
fn process(&self, ctx: &RequestContext) -> MiddlewareResult
Auto Trait Implementations§
impl Freeze for AuthMiddleware
impl RefUnwindSafe for AuthMiddleware
impl Send for AuthMiddleware
impl Sync for AuthMiddleware
impl Unpin for AuthMiddleware
impl UnsafeUnpin 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