Struct sn0int::db::ttl::Ttl[][src]

pub struct Ttl {
    pub id: i32,
    pub family: String,
    pub key: i32,
    pub value: String,
    pub expire: NaiveDateTime,
}

Fields

id: i32family: Stringkey: i32value: Stringexpire: NaiveDateTime

Implementations

impl Ttl[src]

pub fn find(obj: &Insert, my_key: i32, db: &Database) -> Result<Option<Ttl>>[src]

pub fn expired(db: &Database) -> Result<Vec<Ttl>>[src]

pub fn create(
    obj: &Insert,
    key: i32,
    value: String,
    ttl: i32,
    db: &Database
) -> Result<()>
[src]

pub fn bump(obj: &Insert, my_key: i32, ttl: i32, db: &Database) -> Result<()>[src]

pub fn delete(&self, db: &Database) -> Result<()>[src]

Trait Implementations

impl<'update> AsChangeset for &'update Ttl[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<family, &'update String>, Eq<key, &'update i32>, Eq<value, &'update String>, Eq<expire, &'update NaiveDateTime>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for Ttl[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<family, String>, Eq<key, i32>, Eq<value, String>, Eq<expire, NaiveDateTime>) as AsChangeset>::Changeset

The update statement this type represents

impl Debug for Ttl[src]

impl HasTable for Ttl[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident Ttl[src]

type Id = &'ident i32

The type of this struct’s identifier. Read more

impl PartialEq<Ttl> for Ttl[src]

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

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

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

impl StructuralPartialEq for Ttl[src]

Auto Trait Implementations

impl RefUnwindSafe for Ttl

impl Send for Ttl

impl Sync for Ttl

impl Unpin for Ttl

impl UnwindSafe for Ttl

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

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> IntoSql for T[src]

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv 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.

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