Struct inth_oauth2::token::Refresh
[−]
[src]
pub struct Refresh { /* fields omitted */ }
An expiring token which can be refreshed.
Methods
impl Refresh
[src]
fn refresh_token(&self) -> &str
Returns the refresh token.
fn expires(&self) -> &DateTime<UTC>
Returns the expiry time of the access token.
Trait Implementations
impl Serialize for Refresh
[src]
fn serialize<S: Serializer>(&self, serializer: &mut S) -> Result<(), S::Error>
Serializes this value into this serializer.
impl Deserialize for Refresh
[src]
fn deserialize<D: Deserializer>(deserializer: &mut D) -> Result<Self, D::Error>
Deserialize this value given this Deserializer
.
impl Debug for Refresh
[src]
impl Clone for Refresh
[src]
fn clone(&self) -> Refresh
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 PartialEq for Refresh
[src]
fn eq(&self, __arg_0: &Refresh) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Refresh) -> bool
This method tests for !=
.
impl Eq for Refresh
[src]
impl Lifetime for Refresh
[src]
impl FromResponse for Refresh
[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