pub struct Claims {
pub jti: String,
pub iss: String,
pub exp: u64,
pub iat: u64,
pub sub: String,
pub aud: String,
pub scopes: String,
}Expand description
The token claims https://www.iana.org/assignments/jwt/jwt.xhtml.
Fields§
§jti: StringThe token ID.
iss: StringThe token issuer URL.
exp: u64The expiration time, seconds since 1970-01-01T00:00:00Z
iat: u64The time in seconds since 1970-01-01T00:00:00Z when the token was issued.
sub: StringThe subject of the token.
aud: StringThe client ID of the service that requested the token.
scopes: StringThe space separated scopes this token is valid for.
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