Struct oauth2::StandardTokenIntrospectionResponse[][src]

pub struct StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType + 'static, 
{ /* fields omitted */ }

Standard OAuth2 token introspection response.

This struct includes the fields defined in Section 2.2 of RFC 7662, as well as extensions defined by the EF type parameter.

Implementations

impl<EF, TT> StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType
[src]

pub fn new(active: bool, extra_fields: EF) -> Self[src]

Instantiate a new OAuth2 token introspection response.

pub fn set_active(&mut self, active: bool)[src]

Sets the set_active field.

pub fn set_scopes(&mut self, scopes: Option<Vec<Scope>>)[src]

Sets the set_scopes field.

pub fn set_client_id(&mut self, client_id: Option<ClientId>)[src]

Sets the set_client_id field.

pub fn set_username(&mut self, username: Option<String>)[src]

Sets the set_username field.

pub fn set_token_type(&mut self, token_type: Option<TT>)[src]

Sets the set_token_type field.

pub fn set_exp(&mut self, exp: Option<DateTime<Utc>>)[src]

Sets the set_exp field.

pub fn set_iat(&mut self, iat: Option<DateTime<Utc>>)[src]

Sets the set_iat field.

pub fn set_nbf(&mut self, nbf: Option<DateTime<Utc>>)[src]

Sets the set_nbf field.

pub fn set_sub(&mut self, sub: Option<String>)[src]

Sets the set_sub field.

pub fn set_aud(&mut self, aud: Option<Vec<String>>)[src]

Sets the set_aud field.

pub fn set_iss(&mut self, iss: Option<String>)[src]

Sets the set_iss field.

pub fn set_jti(&mut self, jti: Option<String>)[src]

Sets the set_jti field.

pub fn set_extra_fields(&mut self, extra_fields: EF)[src]

Sets the set_extra_fields field.

Trait Implementations

impl<EF: Clone, TT: Clone> Clone for StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType + 'static, 
[src]

impl<EF: Debug, TT: Debug> Debug for StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType + 'static, 
[src]

impl<'de, EF, TT> Deserialize<'de> for StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType + 'static,
    TT: TokenType,
    EF: ExtraTokenFields
[src]

impl<EF, TT> Serialize for StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType + 'static,
    TT: TokenType,
    EF: ExtraTokenFields
[src]

impl<EF, TT> TokenIntrospectionResponse<TT> for StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType
[src]

Auto Trait Implementations

impl<EF, TT> RefUnwindSafe for StandardTokenIntrospectionResponse<EF, TT> where
    EF: RefUnwindSafe,
    TT: RefUnwindSafe
[src]

impl<EF, TT> Send for StandardTokenIntrospectionResponse<EF, TT> where
    EF: Send,
    TT: Send
[src]

impl<EF, TT> Sync for StandardTokenIntrospectionResponse<EF, TT> where
    EF: Sync,
    TT: Sync
[src]

impl<EF, TT> Unpin for StandardTokenIntrospectionResponse<EF, TT> where
    EF: Unpin,
    TT: Unpin
[src]

impl<EF, TT> UnwindSafe for StandardTokenIntrospectionResponse<EF, TT> where
    EF: UnwindSafe,
    TT: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,