pub struct Claims {
pub sub: String,
pub iat: u64,
pub exp: u64,
pub kind: Option<String>,
}Expand description
Decoded JWT claims.
Fields§
§sub: String§iat: u64§exp: u64§kind: Option<String>Token kind: "access" or "refresh". None for legacy tokens
issued before the kind field was introduced.
Trait Implementations§
impl Eq for Claims
impl StructuralPartialEq for Claims
Auto Trait Implementations§
impl Freeze for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin for Claims
impl UnsafeUnpin for Claims
impl UnwindSafe for Claims
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