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

pub struct Session<V> {
    pub expires: Option<OffsetDateTime>,
    pub value: Option<V>,
}

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

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

impl<'de, V> Deserialize<'de> for Session<V> where
    V: Deserialize<'de>, 
[src]

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

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

impl<V> Serialize for Session<V> where
    V: Serialize
[src]

impl<V> StructuralEq for Session<V>[src]

impl<V> StructuralPartialEq for Session<V>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,