Struct oauth2::Token [] [src]

pub struct Token {
    pub access_token: String,
    pub scopes: Vec<String>,
    pub token_type: String,
}

Represents a Token struct

Fields

access_token

access token used to authenticate queries

scopes

A vec of scopes

token_type

'bearer', etc...

Trait Implementations

Derived Implementations

impl PartialOrd for Token

fn partial_cmp(&self, __arg_0: &Token) -> Option<Ordering>

fn lt(&self, __arg_0: &Token) -> bool

fn le(&self, __arg_0: &Token) -> bool

fn gt(&self, __arg_0: &Token) -> bool

fn ge(&self, __arg_0: &Token) -> bool

impl Ord for Token

fn cmp(&self, __arg_0: &Token) -> Ordering

impl Eq for Token

impl PartialEq for Token

fn eq(&self, __arg_0: &Token) -> bool

fn ne(&self, __arg_0: &Token) -> bool

impl Clone for Token

fn clone(&self) -> Token

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Token

fn fmt(&self, __arg_0: &mut Formatter) -> Result