Struct inth_oauth2::token::Bearer [] [src]

pub struct Bearer<L: Lifetime> {
    // some fields omitted
}

The bearer token type.

See RFC 6750.

Trait Implementations

impl<L: Lifetime + Serialize> Serialize for Bearer<L>

fn serialize<S: Serializer>(&self, serializer: &mut S) -> Result<(), S::Error>

impl<L: Lifetime + Deserialize> Deserialize for Bearer<L>

fn deserialize<D: Deserializer>(deserializer: &mut D) -> Result<Self, D::Error>

impl<L: Lifetime> Token<L> for Bearer<L>

fn access_token(&self) -> &str

fn scope(&self) -> Option<&str>

fn lifetime(&self) -> &L

impl<'a, L: Lifetime> Into<Authorization<Bearer>> for &'a Bearer<L>

fn into(self) -> Authorization<Bearer>

impl<L: Lifetime> FromResponse for Bearer<L>

fn from_response(json: &Json) -> Result<Self, ParseError>

fn from_response_inherit(json: &Json, prev: &Self) -> Result<Self, ParseError>

Derived Implementations

impl<L: Decodable + Lifetime> Decodable for Bearer<L>

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Bearer<L>, __D::Error>

impl<L: Encodable + Lifetime> Encodable for Bearer<L>

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl<L: Eq + Lifetime> Eq for Bearer<L>

impl<L: PartialEq + Lifetime> PartialEq for Bearer<L>

fn eq(&self, __arg_0: &Bearer<L>) -> bool

fn ne(&self, __arg_0: &Bearer<L>) -> bool

impl<L: Clone + Lifetime> Clone for Bearer<L>

fn clone(&self) -> Bearer<L>

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

impl<L: Debug + Lifetime> Debug for Bearer<L>

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