[][src]Struct webapp::protocol::model::Session

pub struct Session {
    pub token: String,
}

A session representation

Fields

token: String

The actual session token

Implementations

impl Session[src]

pub fn new<T>(token: T) -> Self where
    String: From<T>, 
[src]

Create a new session from a given token

Trait Implementations

impl Debug for Session[src]

impl<'de> Deserialize<'de> for Session[src]

impl<'insert> Insertable<table> for Session[src]

type Values = <(Option<Eq<token, String>>,) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert Session[src]

type Values = <(Option<Eq<token, &'insert String>>,) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl PartialEq<Session> for Session[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Session where
    (String,): Queryable<__ST, __DB>, 
[src]

type Row = <(String,) as Queryable<__ST, __DB>>::Row

The Rust type you'd like to map from. Read more

impl Serialize for Session[src]

impl StructuralPartialEq for Session[src]

impl<'insert> UndecoratedInsertRecord<table> for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

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> 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> IntoSql for T

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.