Struct inth_oauth2::token::Bearer
[−]
[src]
pub struct Bearer<L: Lifetime> { /* fields omitted */ }
The bearer token type.
See RFC 6750.
Trait Implementations
impl<L: Lifetime + Serialize> Serialize for Bearer<L>
[src]
fn serialize<S: Serializer>(&self, serializer: &mut S) -> Result<(), S::Error>
Serializes this value into this serializer.
impl<L: Lifetime + Deserialize> Deserialize for Bearer<L>
[src]
fn deserialize<D: Deserializer>(deserializer: &mut D) -> Result<Self, D::Error>
Deserialize this value given this Deserializer
.
impl<L: Debug + Lifetime> Debug for Bearer<L>
[src]
impl<L: Clone + Lifetime> Clone for Bearer<L>
[src]
fn clone(&self) -> Bearer<L>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<L: PartialEq + Lifetime> PartialEq for Bearer<L>
[src]
fn eq(&self, __arg_0: &Bearer<L>) -> bool
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
This method tests for !=
.
impl<L: Eq + Lifetime> Eq for Bearer<L>
[src]
impl<L: Encodable + Lifetime> Encodable for Bearer<L>
[src]
fn encode<__SL: Encoder>(&self, __arg_0: &mut __SL) -> Result<(), __SL::Error>
Serialize a value using an Encoder
.
impl<L: Decodable + Lifetime> Decodable for Bearer<L>
[src]
fn decode<__DL: Decoder>(__arg_0: &mut __DL) -> Result<Bearer<L>, __DL::Error>
Deserialize a value using a Decoder
.
impl<L: Lifetime> Token<L> for Bearer<L>
[src]
fn access_token(&self) -> &str
Returns the access token. Read more
fn scope(&self) -> Option<&str>
Returns the scope, if available.
fn lifetime(&self) -> &L
Returns the token lifetime.
impl<'a, L: Lifetime> Into<Authorization<Bearer>> for &'a Bearer<L>
[src]
fn into(self) -> Authorization<Bearer>
Performs the conversion.
impl<L: Lifetime> FromResponse for Bearer<L>
[src]
fn from_response(json: &Json) -> Result<Self, ParseError>
Parse a JSON response.
fn from_response_inherit(json: &Json, prev: &Self) -> Result<Self, ParseError>
Parse a JSON response, inheriting missing values from the previous instance. Read more