Struct diesel::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 Ord for PgDate
[src]

fn cmp(&self, __arg_0: &PgDate) -> Ordering

This method returns an Ordering between self and other. Read more

impl PartialOrd for PgDate
[src]

fn partial_cmp(&self, __arg_0: &PgDate) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &PgDate) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &PgDate) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &PgDate) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &PgDate) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for PgDate
[src]

impl PartialEq for PgDate
[src]

fn eq(&self, __arg_0: &PgDate) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &PgDate) -> bool

This method tests for !=.

impl Copy for PgDate
[src]

impl Clone for PgDate
[src]

fn clone(&self) -> PgDate

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for PgDate
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Queriable<Date> for PgDate
[src]

type Row = Self

fn build(row: Self::Row) -> Self

impl<'a> AsExpression<Date> for PgDate
[src]

type Expression = Bound<Date, Self>

fn as_expression(self) -> Self::Expression

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

type Expression = Bound<Date, Self>

fn as_expression(self) -> Self::Expression

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

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

fn as_expression(self) -> Self::Expression

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

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

fn as_expression(self) -> Self::Expression

impl<'a> ToSql<Nullable<Date>> for PgDate
[src]

fn to_sql<W: Write>(&self, out: &mut W) -> Result<IsNullBox<Error>>

impl ToSql<Date> for PgDate
[src]

fn to_sql<W: Write>(&self, out: &mut W) -> Result<IsNullBox<Error>>

impl FromSql<Date> for PgDate
[src]

fn from_sql(bytes: Option<&[u8]>) -> Result<Self, Box<Error>>