pub struct Session<V> {
pub expires: Option<OffsetDateTime>,
pub value: Option<V>,
}
Expand description
A session with an exipiration date and optional value.
Fields§
§expires: Option<OffsetDateTime>
The Utc timestamp when the session expires.
value: Option<V>
The value of the session.
Trait Implementations§
Source§impl<'de, V> Deserialize<'de> for Session<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Session<V>where
V: 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<V: Eq> Eq for Session<V>
impl<V> StructuralPartialEq for Session<V>
Auto Trait Implementations§
impl<V> Freeze for Session<V>where
V: Freeze,
impl<V> RefUnwindSafe for Session<V>where
V: RefUnwindSafe,
impl<V> Send for Session<V>where
V: Send,
impl<V> Sync for Session<V>where
V: Sync,
impl<V> Unpin for Session<V>where
V: Unpin,
impl<V> UnwindSafe for Session<V>where
V: 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