[][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<'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<__ST, __DB> FromSqlRow<__ST, __DB> for PgTimestamp where
    __DB: Backend,
    Self: FromSql<__ST, __DB>, 
[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,
    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

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> 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> 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.