Struct openidconnect::IdTokenFields
source · pub struct IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,{ /* private fields */ }
Expand description
Extends the base OAuth2 token response with an ID token.
Implementations§
source§impl<AC, EF, GC, JE, JS, JT> IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
impl<AC, EF, GC, JE, JS, JT> IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
sourcepub fn new(
id_token: Option<IdToken<AC, GC, JE, JS, JT>>,
extra_fields: EF
) -> Self
pub fn new( id_token: Option<IdToken<AC, GC, JE, JS, JT>>, extra_fields: EF ) -> Self
Initializes new ID token fields containing the specified IdToken
and extra fields.
sourcepub fn id_token(&self) -> Option<&IdToken<AC, GC, JE, JS, JT>>
pub fn id_token(&self) -> Option<&IdToken<AC, GC, JE, JS, JT>>
Returns the IdToken
contained in the OAuth2 token response.
sourcepub fn extra_fields(&self) -> &EF
pub fn extra_fields(&self) -> &EF
Returns the extra fields contained in the OAuth2 token response.
Trait Implementations§
source§impl<AC, EF, GC, JE, JS, JT> Clone for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims + Clone,
EF: ExtraTokenFields + Clone,
GC: GenderClaim + Clone,
JE: JweContentEncryptionAlgorithm<JT> + Clone,
JS: JwsSigningAlgorithm<JT> + Clone,
JT: JsonWebKeyType + Clone,
impl<AC, EF, GC, JE, JS, JT> Clone for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims + Clone,
EF: ExtraTokenFields + Clone,
GC: GenderClaim + Clone,
JE: JweContentEncryptionAlgorithm<JT> + Clone,
JS: JwsSigningAlgorithm<JT> + Clone,
JT: JsonWebKeyType + Clone,
source§fn clone(&self) -> IdTokenFields<AC, EF, GC, JE, JS, JT>
fn clone(&self) -> IdTokenFields<AC, EF, GC, JE, JS, JT>
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<AC, EF, GC, JE, JS, JT> Debug for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims + Debug,
EF: ExtraTokenFields + Debug,
GC: GenderClaim + Debug,
JE: JweContentEncryptionAlgorithm<JT> + Debug,
JS: JwsSigningAlgorithm<JT> + Debug,
JT: JsonWebKeyType + Debug,
impl<AC, EF, GC, JE, JS, JT> Debug for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims + Debug,
EF: ExtraTokenFields + Debug,
GC: GenderClaim + Debug,
JE: JweContentEncryptionAlgorithm<JT> + Debug,
JS: JwsSigningAlgorithm<JT> + Debug,
JT: JsonWebKeyType + Debug,
source§impl<'de, AC, EF, GC, JE, JS, JT> Deserialize<'de> for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
impl<'de, AC, EF, GC, JE, JS, JT> Deserialize<'de> for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
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<AC, EF, GC, JE, JS, JT> PartialEq for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims + PartialEq,
EF: ExtraTokenFields + PartialEq,
GC: GenderClaim + PartialEq,
JE: JweContentEncryptionAlgorithm<JT> + PartialEq,
JS: JwsSigningAlgorithm<JT> + PartialEq,
JT: JsonWebKeyType + PartialEq,
impl<AC, EF, GC, JE, JS, JT> PartialEq for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims + PartialEq,
EF: ExtraTokenFields + PartialEq,
GC: GenderClaim + PartialEq,
JE: JweContentEncryptionAlgorithm<JT> + PartialEq,
JS: JwsSigningAlgorithm<JT> + PartialEq,
JT: JsonWebKeyType + PartialEq,
source§fn eq(&self, other: &IdTokenFields<AC, EF, GC, JE, JS, JT>) -> bool
fn eq(&self, other: &IdTokenFields<AC, EF, GC, JE, JS, JT>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<AC, EF, GC, JE, JS, JT> Serialize for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
impl<AC, EF, GC, JE, JS, JT> Serialize for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
impl<AC, EF, GC, JE, JS, JT> ExtraTokenFields for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
impl<AC, EF, GC, JE, JS, JT> StructuralPartialEq for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: AdditionalClaims,
EF: ExtraTokenFields,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
Auto Trait Implementations§
impl<AC, EF, GC, JE, JS, JT> RefUnwindSafe for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: RefUnwindSafe,
EF: RefUnwindSafe,
GC: RefUnwindSafe,
JE: RefUnwindSafe,
JS: RefUnwindSafe,
JT: RefUnwindSafe,
impl<AC, EF, GC, JE, JS, JT> Send for IdTokenFields<AC, EF, GC, JE, JS, JT>
impl<AC, EF, GC, JE, JS, JT> Sync for IdTokenFields<AC, EF, GC, JE, JS, JT>
impl<AC, EF, GC, JE, JS, JT> Unpin for IdTokenFields<AC, EF, GC, JE, JS, JT>
impl<AC, EF, GC, JE, JS, JT> UnwindSafe for IdTokenFields<AC, EF, GC, JE, JS, JT>where
AC: UnwindSafe,
EF: UnwindSafe,
GC: UnwindSafe,
JE: UnwindSafe,
JS: UnwindSafe,
JT: UnwindSafe,
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