Struct secure_session::session::Session
[−]
[src]
pub struct Session<V: Serialize + Deserialize> { pub expires: Option<DateTime<UTC>>, pub value: Option<V>, }
A session with an exipiration date and optional value.
Fields
expires: Option<DateTime<UTC>>
The UTC timestamp when the session expires.
value: Option<V>
The value of the session.
Trait Implementations
impl<V: Clone + Serialize + Deserialize> Clone for Session<V>
[src]
fn clone(&self) -> Session<V>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more