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

pub struct PgDate(pub i32);

Dates are represented in Postgres as a 32 bit signed integer representing the number of julian days since January 1st 2000. This struct is a dumb wrapper type, meant only to indicate the integer’s meaning.

Trait Implementations

impl<'expr> AsExpression<Date> for &'expr PgDate[src]

type Expression = Bound<Date, Self>

The expression being returned

impl AsExpression<Date> for PgDate[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr> AsExpression<Nullable<Date>> for &'expr PgDate[src]

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

The expression being returned

impl AsExpression<Nullable<Date>> for PgDate[src]

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

The expression being returned

impl Clone for PgDate[src]

impl Copy for PgDate[src]

impl Debug for PgDate[src]

impl Eq for PgDate[src]

impl FromSql<Date, Pg> for PgDate[src]

impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgDate where
    __DB: Backend,
    Self: FromSql<__ST, __DB>, 
[src]

impl Ord for PgDate[src]

impl PartialEq<PgDate> for PgDate[src]

impl PartialOrd<PgDate> for PgDate[src]

impl<__ST, __DB> Queryable<__ST, __DB> for PgDate 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 PgDate[src]

impl StructuralPartialEq for PgDate[src]

impl ToSql<Date, Pg> for PgDate[src]

impl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
    __DB: Backend,
    Self: ToSql<Date, __DB>, 
[src]

Auto Trait Implementations

impl RefUnwindSafe for PgDate

impl Send for PgDate

impl Sync for PgDate

impl Unpin for PgDate

impl UnwindSafe for PgDate

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.