pub struct RegisteredClaims {
pub iss: Option<SmallString<20>>,
pub sub: Option<SmallString<36>>,
pub aud: Option<SmallString<20>>,
pub exp: Option<u64>,
pub nbf: Option<u64>,
pub iat: Option<u64>,
pub jti: Option<SmallString<36>>,
}Expand description
Registered claim names from https://www.rfc-editor.org/rfc/rfc7519#section-4.1
Fields§
§iss: Option<SmallString<20>>Issuer https://www.rfc-editor.org/rfc/rfc7519#section-4.1.1
sub: Option<SmallString<36>>Subject https://www.rfc-editor.org/rfc/rfc7519#section-4.1.2
aud: Option<SmallString<20>>Audience https://www.rfc-editor.org/rfc/rfc7519#section-4.1.3
exp: Option<u64>Expiration Time https://www.rfc-editor.org/rfc/rfc7519#section-4.1.4
nbf: Option<u64>Not Before https://www.rfc-editor.org/rfc/rfc7519#section-4.1.5
iat: Option<u64>Issued At https://www.rfc-editor.org/rfc/rfc7519#section-4.1.6
jti: Option<SmallString<36>>JWT ID https://www.rfc-editor.org/rfc/rfc7519#section-4.1.7
Trait Implementations§
Source§impl Clone for RegisteredClaims
impl Clone for RegisteredClaims
Source§fn clone(&self) -> RegisteredClaims
fn clone(&self) -> RegisteredClaims
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<'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
impl Eq for RegisteredClaims
Source§impl Hash for RegisteredClaims
impl Hash for RegisteredClaims
Source§impl PartialEq for RegisteredClaims
impl PartialEq for RegisteredClaims
Source§impl Serialize for RegisteredClaims
impl Serialize for RegisteredClaims
impl StructuralPartialEq for RegisteredClaims
Auto Trait Implementations§
impl Freeze for RegisteredClaims
impl RefUnwindSafe for RegisteredClaims
impl Send for RegisteredClaims
impl Sync for RegisteredClaims
impl Unpin for RegisteredClaims
impl UnsafeUnpin 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