Struct twitch_oauth2::id::TwitchTokenResponse [−][src]
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]
TT: TokenType,
EF: ExtraTokenFields,
fn clone(&self) -> TwitchTokenResponse<EF, TT>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<EF: Debug, TT: Debug> Debug for TwitchTokenResponse<EF, TT> where
TT: TokenType,
EF: ExtraTokenFields,
[src]
TT: TokenType,
EF: ExtraTokenFields,
impl<'de, EF, TT> Deserialize<'de> for TwitchTokenResponse<EF, TT> where
TT: TokenType,
EF: ExtraTokenFields,
TT: TokenType,
EF: ExtraTokenFields,
[src]
TT: TokenType,
EF: ExtraTokenFields,
TT: TokenType,
EF: ExtraTokenFields,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<EF, TT> Serialize for TwitchTokenResponse<EF, TT> where
TT: TokenType,
EF: ExtraTokenFields,
TT: TokenType,
EF: ExtraTokenFields,
[src]
TT: TokenType,
EF: ExtraTokenFields,
TT: TokenType,
EF: ExtraTokenFields,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<EF, TT> TokenResponse<TT> for TwitchTokenResponse<EF, TT> where
TT: TokenType,
EF: ExtraTokenFields,
[src]
TT: TokenType,
EF: ExtraTokenFields,
fn access_token(&self) -> &AccessToken
[src]
fn token_type(&self) -> &TT
[src]
fn expires_in(&self) -> Option<Duration>
[src]
fn refresh_token(&self) -> Option<&RefreshToken>
[src]
fn scopes(&self) -> Option<&Vec<Scope>>
[src]
Auto Trait Implementations
impl<EF, TT> RefUnwindSafe for TwitchTokenResponse<EF, TT> where
EF: RefUnwindSafe,
TT: RefUnwindSafe,
EF: RefUnwindSafe,
TT: RefUnwindSafe,
impl<EF, TT> Send for TwitchTokenResponse<EF, TT> where
EF: Send,
TT: Send,
EF: Send,
TT: Send,
impl<EF, TT> Sync for TwitchTokenResponse<EF, TT> where
EF: Sync,
TT: Sync,
EF: Sync,
TT: Sync,
impl<EF, TT> Unpin for TwitchTokenResponse<EF, TT> where
EF: Unpin,
TT: Unpin,
EF: Unpin,
TT: Unpin,
impl<EF, TT> UnwindSafe for TwitchTokenResponse<EF, TT> where
EF: UnwindSafe,
TT: UnwindSafe,
EF: UnwindSafe,
TT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,