Trait inth_oauth2::token::Token
[−]
[src]
pub trait Token<L: Lifetime>: FromResponse { fn access_token(&self) -> &str; fn scope(&self) -> Option<&str>; fn lifetime(&self) -> &L; }
OAuth 2.0 tokens.
See RFC 6749, section 5.
Required Methods
fn access_token(&self) -> &str
Returns the access token.
fn scope(&self) -> Option<&str>
Returns the scope, if available.
fn lifetime(&self) -> &L
Returns the token lifetime.