Struct etwin_core::oauth::TwinoidAccessToken
source · pub struct TwinoidAccessToken {
pub key: RfcOauthAccessTokenKey,
pub created_at: Instant,
pub accessed_at: Instant,
pub expires_at: Instant,
pub twinoid_user_id: TwinoidUserId,
}
Fields§
§key: RfcOauthAccessTokenKey
§created_at: Instant
§accessed_at: Instant
§expires_at: Instant
§twinoid_user_id: TwinoidUserId
Trait Implementations§
source§impl Clone for TwinoidAccessToken
impl Clone for TwinoidAccessToken
source§fn clone(&self) -> TwinoidAccessToken
fn clone(&self) -> TwinoidAccessToken
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 TwinoidAccessToken
impl Debug for TwinoidAccessToken
source§impl Hash for TwinoidAccessToken
impl Hash for TwinoidAccessToken
source§impl Ord for TwinoidAccessToken
impl Ord for TwinoidAccessToken
source§fn cmp(&self, other: &TwinoidAccessToken) -> Ordering
fn cmp(&self, other: &TwinoidAccessToken) -> 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<TwinoidAccessToken> for TwinoidAccessToken
impl PartialEq<TwinoidAccessToken> for TwinoidAccessToken
source§fn eq(&self, other: &TwinoidAccessToken) -> bool
fn eq(&self, other: &TwinoidAccessToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TwinoidAccessToken> for TwinoidAccessToken
impl PartialOrd<TwinoidAccessToken> for TwinoidAccessToken
source§fn partial_cmp(&self, other: &TwinoidAccessToken) -> Option<Ordering>
fn partial_cmp(&self, other: &TwinoidAccessToken) -> 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