[][src]Struct discord_game_sdk::OAuth2Token

pub struct OAuth2Token(_);

Methods

impl OAuth2Token[src]

pub fn access_token(&self) -> &str[src]

A bearer token for the current user

Cost

String length is calculated every call

pub fn scopes<'a>(
    &'a self
) -> impl Iterator<Item = &'a str> + DoubleEndedIterator + FusedIterator + 'a
[src]

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_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<DiscordOAuth2Token> for OAuth2Token[src]

impl From<OAuth2Token> for DiscordOAuth2Token[src]

impl PartialEq<OAuth2Token> for OAuth2Token[src]

impl Copy for OAuth2Token[src]

impl Eq for OAuth2Token[src]

impl Debug for OAuth2Token[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<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]