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]

Serializes this value into this serializer.

impl<L: Lifetime + Deserialize> Deserialize for Bearer<L>
[src]

Deserialize this value given this Deserializer.

impl<L: Debug + Lifetime> Debug for Bearer<L>
[src]

Formats the value using the given formatter.

impl<L: Clone + Lifetime> Clone for Bearer<L>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<L: PartialEq + Lifetime> PartialEq for Bearer<L>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<L: Eq + Lifetime> Eq for Bearer<L>
[src]

impl<L: Encodable + Lifetime> Encodable for Bearer<L>
[src]

Serialize a value using an Encoder.

impl<L: Decodable + Lifetime> Decodable for Bearer<L>
[src]

Deserialize a value using a Decoder.

impl<L: Lifetime> Token<L> for Bearer<L>
[src]

Returns the access token. Read more

Returns the scope, if available.

Returns the token lifetime.

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

Performs the conversion.

impl<L: Lifetime> FromResponse for Bearer<L>
[src]

Parse a JSON response.

Parse a JSON response, inheriting missing values from the previous instance. Read more