pub struct CookieCachePayload<S, U> {
pub session: S,
pub user: U,
pub updated_at: i64,
pub version: String,
}Fields§
§session: S§user: U§updated_at: i64§version: StringTrait Implementations§
Source§impl<S: Clone, U: Clone> Clone for CookieCachePayload<S, U>
impl<S: Clone, U: Clone> Clone for CookieCachePayload<S, U>
Source§fn clone(&self) -> CookieCachePayload<S, U>
fn clone(&self) -> CookieCachePayload<S, U>
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<'de, S, U> Deserialize<'de> for CookieCachePayload<S, U>where
S: Deserialize<'de>,
U: Deserialize<'de>,
impl<'de, S, U> Deserialize<'de> for CookieCachePayload<S, U>where
S: Deserialize<'de>,
U: Deserialize<'de>,
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
impl<S: Eq, U: Eq> Eq for CookieCachePayload<S, U>
Source§impl<S: PartialEq, U: PartialEq> PartialEq for CookieCachePayload<S, U>
impl<S: PartialEq, U: PartialEq> PartialEq for CookieCachePayload<S, U>
Source§fn eq(&self, other: &CookieCachePayload<S, U>) -> bool
fn eq(&self, other: &CookieCachePayload<S, U>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<S, U> Serialize for CookieCachePayload<S, U>
impl<S, U> Serialize for CookieCachePayload<S, U>
impl<S, U> StructuralPartialEq for CookieCachePayload<S, U>
Auto Trait Implementations§
impl<S, U> Freeze for CookieCachePayload<S, U>
impl<S, U> RefUnwindSafe for CookieCachePayload<S, U>where
S: RefUnwindSafe,
U: RefUnwindSafe,
impl<S, U> Send for CookieCachePayload<S, U>
impl<S, U> Sync for CookieCachePayload<S, U>
impl<S, U> Unpin for CookieCachePayload<S, U>
impl<S, U> UnsafeUnpin for CookieCachePayload<S, U>where
S: UnsafeUnpin,
U: UnsafeUnpin,
impl<S, U> UnwindSafe for CookieCachePayload<S, U>where
S: UnwindSafe,
U: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.