pub struct JwtIdentity(pub Value);Expand description
Identity value stored in HttpRequest extensions.
Retrieve it in a handler via get_identity.
Tuple Fields§
§0: ValueTrait Implementations§
Source§impl Clone for JwtIdentity
impl Clone for JwtIdentity
Source§fn clone(&self) -> JwtIdentity
fn clone(&self) -> JwtIdentity
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 JwtIdentity
impl RefUnwindSafe for JwtIdentity
impl Send for JwtIdentity
impl Sync for JwtIdentity
impl Unpin for JwtIdentity
impl UnsafeUnpin for JwtIdentity
impl UnwindSafe for JwtIdentity
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