Struct inth_oauth2::token::Refresh [] [src]

pub struct Refresh {
    // some fields omitted
}

An expiring token which can be refreshed.

Methods

impl Refresh

fn refresh_token(&self) -> &str

Returns the refresh token.

See RFC 6749, section 1.5.

fn expires(&self) -> &DateTime<UTC>

Returns the expiry time of the access token.

Trait Implementations

impl Serialize for Refresh

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

impl Deserialize for Refresh

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

impl Lifetime for Refresh

fn expired(&self) -> bool

impl FromResponse for Refresh

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

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

impl Encodable for Refresh

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl Decodable for Refresh

fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>

Derived Implementations

impl Eq for Refresh

impl PartialEq for Refresh

fn eq(&self, __arg_0: &Refresh) -> bool

fn ne(&self, __arg_0: &Refresh) -> bool

impl Clone for Refresh

fn clone(&self) -> Refresh

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

impl Debug for Refresh

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