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

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<__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 FromSql<Date, Pg> for PgDate
[src]

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

const FIELDS_NEEDED: usize[src]

The number of fields that this type will consume. Must be equal to the number of times you would call row.take() in build_from_row Read more

impl<'expr> AsExpression<Date> for &'expr 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<Date> for PgDate
[src]

type Expression = Bound<Date, Self>

The expression being returned

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

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

The expression being returned

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

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

impl Eq for PgDate
[src]

impl PartialOrd<PgDate> for PgDate
[src]

impl Copy for PgDate
[src]

impl PartialEq<PgDate> for PgDate
[src]

impl Clone for PgDate
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for PgDate
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for PgDate
[src]

Auto Trait Implementations

impl Send for PgDate

impl Sync for PgDate

Blanket Implementations

impl<T> IntoSql for T
[src]

fn into_sql<T>(self) -> AsExprOf<Self, T> where
    Self: AsExpression<T> + Sized
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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