pub struct Jwt<S, Claim, F> { /* private fields */ }Expand description
Middleware for validating a valid JWT token is present on “authorization: bearer
Trait Implementations§
Source§impl<S, ReqBody, ResBody, Claim, F> Service<Request<ReqBody>> for Jwt<S, Claim, F>where
S: Service<Request<ReqBody>, Response = Response<ResBody>> + Send + Clone + 'static,
S::Future: Send + 'static,
ResBody: Default,
F: DecodingKeyFn + 'static,
<F as DecodingKeyFn>::Error: 'static,
for<'de> Claim: Deserialize<'de> + Send + Sync + Clone + 'static,
impl<S, ReqBody, ResBody, Claim, F> Service<Request<ReqBody>> for Jwt<S, Claim, F>where
S: Service<Request<ReqBody>, Response = Response<ResBody>> + Send + Clone + 'static,
S::Future: Send + 'static,
ResBody: Default,
F: DecodingKeyFn + 'static,
<F as DecodingKeyFn>::Error: 'static,
for<'de> Claim: Deserialize<'de> + Send + Sync + Clone + 'static,
Auto Trait Implementations§
impl<S, Claim, F> Freeze for Jwt<S, Claim, F>
impl<S, Claim, F> RefUnwindSafe for Jwt<S, Claim, F>
impl<S, Claim, F> Send for Jwt<S, Claim, F>
impl<S, Claim, F> Sync for Jwt<S, Claim, F>
impl<S, Claim, F> Unpin for Jwt<S, Claim, F>
impl<S, Claim, F> UnwindSafe for Jwt<S, Claim, F>
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