Struct jwt::claims::RegisteredClaims [−][src]
pub struct RegisteredClaims {
pub issuer: Option<String>,
pub subject: Option<String>,
pub audience: Option<String>,
pub expiration: Option<SecondsSinceEpoch>,
pub not_before: Option<SecondsSinceEpoch>,
pub issued_at: Option<SecondsSinceEpoch>,
pub json_web_token_id: Option<String>,
}
Expand description
Registered claims according to the JWT specification.
Fields
issuer: Option<String>
subject: Option<String>
audience: Option<String>
expiration: Option<SecondsSinceEpoch>
not_before: Option<SecondsSinceEpoch>
issued_at: Option<SecondsSinceEpoch>
json_web_token_id: Option<String>
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RegisteredClaims
impl Send for RegisteredClaims
impl Sync for RegisteredClaims
impl Unpin for RegisteredClaims
impl UnwindSafe for RegisteredClaims
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self