pub struct AuthSession {
pub token: String,
pub identity: AuthIdentity,
pub issued_at_unix_ms: u64,
pub expires_at_unix_ms: u64,
}Fields§
§token: String§identity: AuthIdentity§issued_at_unix_ms: u64§expires_at_unix_ms: u64Trait Implementations§
Source§impl Clone for AuthSession
impl Clone for AuthSession
Source§fn clone(&self) -> AuthSession
fn clone(&self) -> AuthSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthSession
impl Debug for AuthSession
Source§impl<'de> Deserialize<'de> for AuthSession
impl<'de> Deserialize<'de> for AuthSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuthSession
impl PartialEq for AuthSession
Source§fn eq(&self, other: &AuthSession) -> bool
fn eq(&self, other: &AuthSession) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthSession
impl Serialize for AuthSession
impl Eq for AuthSession
impl StructuralPartialEq for AuthSession
Auto Trait Implementations§
impl Freeze for AuthSession
impl RefUnwindSafe for AuthSession
impl Send for AuthSession
impl Sync for AuthSession
impl Unpin for AuthSession
impl UnsafeUnpin for AuthSession
impl UnwindSafe for AuthSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more