pub struct SessionValue<const SESSION_LEN: usize> {
pub session_key: [u8; SESSION_LEN],
pub linked_accounts_cache: Vec<Box<str>>,
pub last_time: SystemTime,
pub created_time: SystemTime,
pub primary_account: Option<Box<str>>,
}Fields§
§session_key: [u8; SESSION_LEN]§linked_accounts_cache: Vec<Box<str>>§last_time: SystemTime§created_time: SystemTime§primary_account: Option<Box<str>>Trait Implementations§
Source§impl<const SESSION_LEN: usize> Clone for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> Clone for SessionValue<SESSION_LEN>
Source§fn clone(&self) -> SessionValue<SESSION_LEN>
fn clone(&self) -> SessionValue<SESSION_LEN>
Returns a duplicate 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<'de, const SESSION_LEN: usize> Deserialize<'de> for SessionValue<SESSION_LEN>
impl<'de, const SESSION_LEN: usize> Deserialize<'de> for SessionValue<SESSION_LEN>
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
Auto Trait Implementations§
impl<const SESSION_LEN: usize> Freeze for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> RefUnwindSafe for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> Send for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> Sync for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> Unpin for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> UnsafeUnpin for SessionValue<SESSION_LEN>
impl<const SESSION_LEN: usize> UnwindSafe for SessionValue<SESSION_LEN>
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