[][src]Struct diesel::pg::data_types::PgTimestamp

pub struct PgTimestamp(pub i64);

Timestamps are represented in Postgres as a 64 bit signed integer representing the number of microseconds since January 1st 2000. This struct is a dumb wrapper type, meant only to indicate the integer's meaning.

Trait Implementations

impl Arbitrary for PgTimestamp[src]

impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr PgTimestamp[src]

type Expression = Bound<Nullable<Timestamp>, Self>

The expression being returned

impl AsExpression<Nullable<Timestamp>> for PgTimestamp[src]

type Expression = Bound<Nullable<Timestamp>, Self>

The expression being returned

impl<'expr> AsExpression<Nullable<Timestamptz>> for &'expr PgTimestamp[src]

type Expression = Bound<Nullable<Timestamptz>, Self>

The expression being returned

impl AsExpression<Nullable<Timestamptz>> for PgTimestamp[src]

type Expression = Bound<Nullable<Timestamptz>, Self>

The expression being returned

impl<'expr> AsExpression<Timestamp> for &'expr PgTimestamp[src]

type Expression = Bound<Timestamp, Self>

The expression being returned

impl AsExpression<Timestamp> for PgTimestamp[src]

type Expression = Bound<Timestamp, Self>

The expression being returned

impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp[src]

type Expression = Bound<Timestamptz, Self>

The expression being returned

impl AsExpression<Timestamptz> for PgTimestamp[src]

type Expression = Bound<Timestamptz, Self>

The expression being returned

impl Clone for PgTimestamp[src]

impl Copy for PgTimestamp[src]

impl Debug for PgTimestamp[src]

impl Eq for PgTimestamp[src]

impl FromSql<Timestamp, Pg> for PgTimestamp[src]

impl FromSql<Timestamptz, Pg> for PgTimestamp[src]

impl Ord for PgTimestamp[src]

impl PartialEq<PgTimestamp> for PgTimestamp[src]

impl PartialOrd<PgTimestamp> for PgTimestamp[src]

impl<__ST, __DB> Queryable<__ST, __DB> for PgTimestamp where
    __DB: Backend,
    __ST: SingleValue,
    Self: FromSql<__ST, __DB>, 
[src]

type Row = Self

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

impl StructuralEq for PgTimestamp[src]

impl StructuralPartialEq for PgTimestamp[src]

impl<__DB> ToSql<Nullable<Timestamp>, __DB> for PgTimestamp where
    __DB: Backend,
    Self: ToSql<Timestamp, __DB>, 
[src]

impl<__DB> ToSql<Nullable<Timestamptz>, __DB> for PgTimestamp where
    __DB: Backend,
    Self: ToSql<Timestamptz, __DB>, 
[src]

impl ToSql<Timestamp, Pg> for PgTimestamp[src]

impl ToSql<Timestamptz, Pg> for PgTimestamp[src]

Auto Trait Implementations

impl RefUnwindSafe for PgTimestamp

impl Send for PgTimestamp

impl Sync for PgTimestamp

impl Unpin for PgTimestamp

impl UnwindSafe for PgTimestamp

Blanket Implementations

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

impl<T, ST> AsExpression<ST> for T where
    ST: SqlType + IntoNotNullable + TypedExpressionType,
    T: Expression,
    <ST as IntoNotNullable>::NotNullable: SingleValue,
    ExpressionImplHelper<T, <ST as SqlType>::IsNull, <<T as Expression>::SqlType as SqlType>::IsNull>: AsExpressionHelper<ST>,
    <T as Expression>::SqlType: SqlType
[src]

type Expression = <ExpressionImplHelper<T, <ST as SqlType>::IsNull, <<T as Expression>::SqlType as SqlType>::IsNull> as AsExpressionHelper<ST>>::Expression

The expression being returned

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

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

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

impl<T, ST, DB> FromSqlRow<ST, DB> for T where
    DB: Backend,
    ST: SqlType,
    T: Queryable<ST, DB>,
    <T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>, 
[src]

impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T where
    DB: Backend,
    ST: SingleValue,
    T: FromSql<ST, DB>, 
[src]

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

impl<T> IntoSql for T[src]

impl<T, ST, DB> StaticallySizedRow<ST, DB> for T where
    DB: Backend,
    ST: SqlType + TupleSize,
    T: Queryable<ST, DB>, 
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]