Struct etwin_core::token::TwinoidOauth[][src]

pub struct TwinoidOauth {
    pub access_token: Option<TwinoidAccessToken>,
    pub refresh_token: Option<TwinoidRefreshToken>,
}

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

impl Clone for TwinoidOauth[src]

impl Debug for TwinoidOauth[src]

impl Eq for TwinoidOauth[src]

impl Hash for TwinoidOauth[src]

impl Ord for TwinoidOauth[src]

impl PartialEq<TwinoidOauth> for TwinoidOauth[src]

impl PartialOrd<TwinoidOauth> for TwinoidOauth[src]

impl StructuralEq for TwinoidOauth[src]

impl StructuralPartialEq for TwinoidOauth[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.