pub struct JwtPayload(pub HashMap<String, Value>);Expand description
JWT claims map stored in HttpRequest extensions by the middleware.
Retrieve it in a handler via extract_claims.
Tuple Fields§
§0: HashMap<String, Value>Trait Implementations§
Source§impl Clone for JwtPayload
impl Clone for JwtPayload
Source§fn clone(&self) -> JwtPayload
fn clone(&self) -> JwtPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JwtPayload
impl RefUnwindSafe for JwtPayload
impl Send for JwtPayload
impl Sync for JwtPayload
impl Unpin for JwtPayload
impl UnsafeUnpin for JwtPayload
impl UnwindSafe for JwtPayload
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