[][src]Struct openidconnect::IdTokenFields

pub struct IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: AdditionalClaims,
    EF: ExtraTokenFields,
    GC: GenderClaim,
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType
{ /* fields omitted */ }

Extends the base OAuth2 token response with an ID token.

Methods

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
[src]

pub fn new(id_token: IdToken<AC, GC, JE, JS, JT>, extra_fields: EF) -> Self[src]

Initializes new ID token fields containing the specified IdToken and extra fields.

pub fn id_token(&self) -> &IdToken<AC, GC, JE, JS, JT>[src]

Returns the IdToken contained in the OAuth2 token response.

pub fn extra_fields(&self) -> &EF[src]

Returns the extra fields contained in the OAuth2 token response.

Trait Implementations

impl<AC: Clone, EF: Clone, GC: Clone, JE: Clone, JS: Clone, JT: Clone> Clone for IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: AdditionalClaims,
    EF: ExtraTokenFields,
    GC: GenderClaim,
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType
[src]

impl<AC: PartialEq, EF: PartialEq, GC: PartialEq, JE: PartialEq, JS: PartialEq, JT: PartialEq> PartialEq<IdTokenFields<AC, EF, GC, JE, JS, JT>> for IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: AdditionalClaims,
    EF: ExtraTokenFields,
    GC: GenderClaim,
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType
[src]

impl<AC: Debug, EF: Debug, GC: Debug, JE: Debug, JS: Debug, JT: Debug> Debug for IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: AdditionalClaims,
    EF: ExtraTokenFields,
    GC: GenderClaim,
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType
[src]

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,
    AC: AdditionalClaims,
    EF: ExtraTokenFields
[src]

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,
    AC: AdditionalClaims,
    EF: ExtraTokenFields
[src]

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
[src]

Auto Trait Implementations

impl<AC, EF, GC, JE, JS, JT> Unpin for IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: Unpin,
    EF: Unpin,
    GC: Unpin,
    JE: Unpin,
    JS: Unpin,
    JT: Unpin

impl<AC, EF, GC, JE, JS, JT> Sync for IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: Sync,
    EF: Sync,
    GC: Sync,
    JE: Sync,
    JS: Sync,
    JT: Sync

impl<AC, EF, GC, JE, JS, JT> Send for IdTokenFields<AC, EF, GC, JE, JS, JT> where
    AC: Send,
    EF: Send,
    GC: Send,
    JE: Send,
    JS: Send,
    JT: Send

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

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err