pub struct AuthClaims(pub TokenClaims);Expand description
JWT 认证声明(挂载在 request.extensions 中)
Tuple Fields§
§0: TokenClaimsTrait Implementations§
Source§impl Clone for AuthClaims
impl Clone for AuthClaims
Source§fn clone(&self) -> AuthClaims
fn clone(&self) -> AuthClaims
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthClaims
impl RefUnwindSafe for AuthClaims
impl Send for AuthClaims
impl Sync for AuthClaims
impl Unpin for AuthClaims
impl UnsafeUnpin for AuthClaims
impl UnwindSafe for AuthClaims
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