Struct twitch_oauth2::id::TwitchTokenResponse[][src]

pub struct TwitchTokenResponse<EF, TT> where
    TT: TokenType,
    EF: ExtraTokenFields
{ pub access_token: AccessToken, pub token_type: TT, pub expires_in: Option<u64>, pub refresh_token: Option<RefreshToken>, pub scopes: Option<Vec<Scope>>, pub extra_fields: EF, }

Twitch’s representation of the oauth flow.

Fields

access_token: AccessToken

Access token

token_type: TT

Token type

expires_in: Option<u64>

Time (in seconds) until token expires

refresh_token: Option<RefreshToken>

Token that can be used to refresh

scopes: Option<Vec<Scope>>

Scopes attached to token

extra_fields: EF

Extras

Trait Implementations

impl<EF: Clone, TT: Clone> Clone for TwitchTokenResponse<EF, TT> where
    TT: TokenType,
    EF: ExtraTokenFields
[src]

impl<EF: Debug, TT: Debug> Debug for TwitchTokenResponse<EF, TT> where
    TT: TokenType,
    EF: ExtraTokenFields
[src]

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

impl<EF, TT> Serialize for TwitchTokenResponse<EF, TT> where
    TT: TokenType,
    EF: ExtraTokenFields,
    TT: TokenType,
    EF: ExtraTokenFields
[src]

impl<EF, TT> TokenResponse<TT> for TwitchTokenResponse<EF, TT> where
    TT: TokenType,
    EF: ExtraTokenFields
[src]

Auto Trait Implementations

impl<EF, TT> RefUnwindSafe for TwitchTokenResponse<EF, TT> where
    EF: RefUnwindSafe,
    TT: RefUnwindSafe

impl<EF, TT> Send for TwitchTokenResponse<EF, TT> where
    EF: Send,
    TT: Send

impl<EF, TT> Sync for TwitchTokenResponse<EF, TT> where
    EF: Sync,
    TT: Sync

impl<EF, TT> Unpin for TwitchTokenResponse<EF, TT> where
    EF: Unpin,
    TT: Unpin

impl<EF, TT> UnwindSafe for TwitchTokenResponse<EF, TT> where
    EF: UnwindSafe,
    TT: UnwindSafe

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>, 

impl<T> WithSubscriber for T[src]