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

The UTC timestamp when the session expires.

The value of the session.

Trait Implementations

impl<V: Clone + Serialize + Deserialize> Clone for Session<V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Eq + Serialize + Deserialize> Eq for Session<V>
[src]

impl<V: PartialEq + Serialize + Deserialize> PartialEq for Session<V>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.