Struct etwin_core::token::TwinoidOauth
source · pub struct TwinoidOauth {
pub access_token: Option<TwinoidAccessToken>,
pub refresh_token: Option<TwinoidRefreshToken>,
}
Expand description
Current Twinoid OAuth tokens
If the refresh token is revoked but an access token still exists, may
return TwinoidOauth {access_token: Some, refresh_token: None}
.
Fields§
§access_token: Option<TwinoidAccessToken>
§refresh_token: Option<TwinoidRefreshToken>
Trait Implementations§
source§impl Clone for TwinoidOauth
impl Clone for TwinoidOauth
source§fn clone(&self) -> TwinoidOauth
fn clone(&self) -> TwinoidOauth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TwinoidOauth
impl Debug for TwinoidOauth
source§impl Hash for TwinoidOauth
impl Hash for TwinoidOauth
source§impl Ord for TwinoidOauth
impl Ord for TwinoidOauth
source§fn cmp(&self, other: &TwinoidOauth) -> Ordering
fn cmp(&self, other: &TwinoidOauth) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TwinoidOauth> for TwinoidOauth
impl PartialEq<TwinoidOauth> for TwinoidOauth
source§fn eq(&self, other: &TwinoidOauth) -> bool
fn eq(&self, other: &TwinoidOauth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TwinoidOauth> for TwinoidOauth
impl PartialOrd<TwinoidOauth> for TwinoidOauth
source§fn partial_cmp(&self, other: &TwinoidOauth) -> Option<Ordering>
fn partial_cmp(&self, other: &TwinoidOauth) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more