pub struct Claims {
pub exp: u64,
pub iat: u64,
pub sub: String,
pub typ: TokenType,
}Expand description
The JSON web token claims. https://www.rfc-editor.org/rfc/rfc7519#section-4
Fields§
§exp: u64The expiry of the token, seconds since Unix epoch.
iat: u64The time when the token was issued, seconds since Unix epoch.
sub: StringThe subject of the token.
typ: TokenTypeThe type of the token.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Claims
impl<'de> Deserialize<'de> for Claims
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin 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