Struct jwt::claims::RegisteredClaims
source · 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§
source§impl Clone for RegisteredClaims
impl Clone for RegisteredClaims
source§fn clone(&self) -> RegisteredClaims
fn clone(&self) -> RegisteredClaims
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RegisteredClaims
impl Debug for RegisteredClaims
source§impl Default for RegisteredClaims
impl Default for RegisteredClaims
source§fn default() -> RegisteredClaims
fn default() -> RegisteredClaims
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RegisteredClaims
impl<'de> Deserialize<'de> for RegisteredClaims
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
source§impl PartialEq for RegisteredClaims
impl PartialEq for RegisteredClaims
source§fn eq(&self, other: &RegisteredClaims) -> bool
fn eq(&self, other: &RegisteredClaims) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RegisteredClaims
impl Serialize for RegisteredClaims
impl StructuralPartialEq for RegisteredClaims
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§
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