[−][src]Struct discord_game_sdk::OAuth2Token
OAuth2 Token
https://discordapp.com/developers/docs/game-sdk/applications#data-models-oauth2token-struct
Methods
impl OAuth2Token
[src]
pub fn access_token(&self) -> &str
[src]
pub fn scopes<'a>(
&'a self
) -> impl Iterator<Item = &'a str> + DoubleEndedIterator + FusedIterator + 'a
[src]
&'a self
) -> impl Iterator<Item = &'a str> + DoubleEndedIterator + FusedIterator + 'a
The list of oauth2 scopes
pub fn expires(&self) -> DateTime<Utc>
[src]
The timestamp at which the token expires
Trait Implementations
impl Clone for OAuth2Token
[src]
fn clone(&self) -> OAuth2Token
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<DiscordOAuth2Token> for OAuth2Token
[src]
fn from(original: DiscordOAuth2Token) -> OAuth2Token
[src]
impl From<OAuth2Token> for DiscordOAuth2Token
[src]
fn from(original: OAuth2Token) -> DiscordOAuth2Token
[src]
impl PartialEq<OAuth2Token> for OAuth2Token
[src]
fn eq(&self, other: &OAuth2Token) -> bool
[src]
fn ne(&self, other: &OAuth2Token) -> bool
[src]
impl Copy for OAuth2Token
[src]
impl Eq for OAuth2Token
[src]
impl Debug for OAuth2Token
[src]
Auto Trait Implementations
impl Sync for OAuth2Token
impl Send for OAuth2Token
impl Unpin for OAuth2Token
impl RefUnwindSafe for OAuth2Token
impl UnwindSafe for OAuth2Token
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,