pub struct JwtClaims<T>(pub T);
Expand description
Claims serialized using T
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T, S> FromRequestParts<S> for JwtClaims<T>
impl<T, S> FromRequestParts<S> for JwtClaims<T>
impl<T: Copy> Copy for JwtClaims<T>
Auto Trait Implementations§
impl<T> Freeze for JwtClaims<T>where
T: Freeze,
impl<T> RefUnwindSafe for JwtClaims<T>where
T: RefUnwindSafe,
impl<T> Send for JwtClaims<T>where
T: Send,
impl<T> Sync for JwtClaims<T>where
T: Sync,
impl<T> Unpin for JwtClaims<T>where
T: Unpin,
impl<T> UnwindSafe for JwtClaims<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.