Struct secure_session::session::Session [] [src]

pub struct Session<V> {
    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> Clone for Session<V>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<V: Eq> Eq for Session<V>
[src]

impl<V: PartialEq> PartialEq for Session<V>
[src]

[src]

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

[src]

This method tests for !=.