pub struct AuthLayer { /* private fields */ }
Available on non-WebAssembly and crate feature
hyper
and crate feature jwt-auth
only.Expand description
The AuthLayer
uses the provided JwtSecret
to generate and validate the jwt token
in the requests.
The generated token is inserted into the AUTHORIZATION
header of the request.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthLayer
impl RefUnwindSafe for AuthLayer
impl Send for AuthLayer
impl Sync for AuthLayer
impl Unpin for AuthLayer
impl UnwindSafe for AuthLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)