Struct inth_oauth2::token::Bearer
[−]
[src]
pub struct Bearer<L: Lifetime> { /* fields omitted */ }
The bearer token type.
See RFC 6750.
Trait Implementations
impl<L: Debug + Lifetime> Debug for Bearer<L>
[src]
impl<L: Clone + Lifetime> Clone for Bearer<L>
[src]
fn clone(&self) -> Bearer<L>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<L: PartialEq + Lifetime> PartialEq for Bearer<L>
[src]
fn eq(&self, __arg_0: &Bearer<L>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bearer<L>) -> bool
[src]
This method tests for !=
.
impl<L: Eq + Lifetime> Eq for Bearer<L>
[src]
impl<L: Lifetime> Token<L> for Bearer<L>
[src]
fn access_token(&self) -> &str
[src]
Returns the access token. Read more
fn scope(&self) -> Option<&str>
[src]
Returns the scope, if available.
fn lifetime(&self) -> &L
[src]
Returns the token lifetime.
impl<'a, L: Lifetime> Into<Authorization<Bearer>> for &'a Bearer<L>
[src]
fn into(self) -> Authorization<Bearer>
[src]
Performs the conversion.
impl<L: Lifetime> FromResponse for Bearer<L>
[src]
fn from_response(json: &Value) -> Result<Self, ParseError>
[src]
Parse a JSON response.
fn from_response_inherit(json: &Value, prev: &Self) -> Result<Self, ParseError>
[src]
Parse a JSON response, inheriting missing values from the previous instance. Read more