Struct openidconnect::IdTokenClaims [−][src]
pub struct IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim, { /* fields omitted */ }
Expand description
OpenID Connect ID token claims.
Implementations
Initializes new ID token claims.
Sets the iss
claim.
Sets the aud
claim.
Returns the exp
claim.
Sets the exp
claim.
Returns the iat
claim.
Sets the iat
claim.
Sets the auth_time
claim.
Returns the acr
claim.
pub fn set_auth_context_ref(
self,
auth_context_ref: Option<AuthenticationContextClass>
) -> Self
pub fn set_auth_context_ref(
self,
auth_context_ref: Option<AuthenticationContextClass>
) -> Self
Sets the acr
claim.
Returns the amr
claim.
pub fn set_auth_method_refs(
self,
auth_method_refs: Option<Vec<AuthenticationMethodReference>>
) -> Self
pub fn set_auth_method_refs(
self,
auth_method_refs: Option<Vec<AuthenticationMethodReference>>
) -> Self
Sets the amr
claim.
Returns the azp
claim.
Sets the azp
claim.
Returns the at_hash
claim.
Sets the at_hash
claim.
Returns the c_hash
claim.
Sets the c_hash
claim.
Returns the sub
claim.
Sets the sub
claim.
Returns the name
claim.
Sets the name
claim.
Returns the given_name
claim.
Sets the given_name
claim.
Returns the family_name
claim.
Sets the family_name
claim.
Returns the middle_name
claim.
Sets the middle_name
claim.
Returns the nickname
claim.
Sets the nickname
claim.
Returns the preferred_username
claim.
Sets the preferred_username
claim.
Returns the profile
claim.
Sets the profile
claim.
Returns the picture
claim.
Sets the picture
claim.
Returns the website
claim.
Sets the website
claim.
Returns the email
claim.
Sets the email
claim.
Returns the email_verified
claim.
Sets the email_verified
claim.
Sets the gender
claim.
Returns the birthday
claim.
Sets the birthday
claim.
Returns the zoneinfo
claim.
Sets the zoneinfo
claim.
Returns the locale
claim.
Sets the locale
claim.
Returns the phone_number
claim.
Sets the phone_number
claim.
Returns the phone_number_verified
claim.
Sets the phone_number_verified
claim.
Returns the address
claim.
Sets the address
claim.
Returns the updated_at
claim.
Sets the updated_at
claim.
Returns additional ID token claims.
Returns mutable additional ID token claims.
Trait Implementations
impl<AC: Clone, GC: Clone> Clone for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
impl<AC: Clone, GC: Clone> Clone for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
impl<AC: Debug, GC: Debug> Debug for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
impl<AC: Debug, GC: Debug> Debug for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
impl<'de, AC, GC> Deserialize<'de> for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
GC: GenderClaim,
AC: AdditionalClaims,
impl<'de, AC, GC> Deserialize<'de> for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
GC: GenderClaim,
AC: AdditionalClaims,
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<AC: PartialEq, GC: PartialEq> PartialEq<IdTokenClaims<AC, GC>> for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
impl<AC: PartialEq, GC: PartialEq> PartialEq<IdTokenClaims<AC, GC>> for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<AC, GC> Serialize for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
GC: GenderClaim,
AC: AdditionalClaims,
impl<AC, GC> Serialize for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
GC: GenderClaim,
AC: AdditionalClaims,
impl<AC, GC> StructuralPartialEq for IdTokenClaims<AC, GC> where
AC: AdditionalClaims,
GC: GenderClaim,
Auto Trait Implementations
impl<AC, GC> RefUnwindSafe for IdTokenClaims<AC, GC> where
AC: RefUnwindSafe,
GC: RefUnwindSafe,
impl<AC, GC> Send for IdTokenClaims<AC, GC> where
AC: Send,
GC: Send,
impl<AC, GC> Sync for IdTokenClaims<AC, GC> where
AC: Sync,
GC: Sync,
impl<AC, GC> Unpin for IdTokenClaims<AC, GC> where
AC: Unpin,
GC: Unpin,
impl<AC, GC> UnwindSafe for IdTokenClaims<AC, GC> where
AC: UnwindSafe,
GC: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self