pub struct JwtAuthenticationDecoder<Claims: DeserializeOwned + Send + Sync + 'static> { /* private fields */ }Implementations§
Source§impl<Claims: DeserializeOwned + Send + Sync + 'static> JwtAuthenticationDecoder<Claims>
impl<Claims: DeserializeOwned + Send + Sync + 'static> JwtAuthenticationDecoder<Claims>
pub fn default(key: DecodingKey) -> Self
pub fn new(validation: Validation, key: DecodingKey) -> Self
Trait Implementations§
Source§impl<State, Claims> Middleware<State> for JwtAuthenticationDecoder<Claims>
impl<State, Claims> Middleware<State> for JwtAuthenticationDecoder<Claims>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
req: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asynchronously handle the request, and return a response.
Auto Trait Implementations§
impl<Claims> Freeze for JwtAuthenticationDecoder<Claims>
impl<Claims> RefUnwindSafe for JwtAuthenticationDecoder<Claims>where
Claims: RefUnwindSafe,
impl<Claims> Send for JwtAuthenticationDecoder<Claims>
impl<Claims> Sync for JwtAuthenticationDecoder<Claims>
impl<Claims> Unpin for JwtAuthenticationDecoder<Claims>where
Claims: Unpin,
impl<Claims> UnwindSafe for JwtAuthenticationDecoder<Claims>where
Claims: UnwindSafe,
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