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<__ST, __DB> FromSqlRow<__ST, __DB> for PgDate where
__DB: Backend,
Self: FromSql<__ST, __DB>, [src]
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgDate where
__DB: Backend,
Self: FromSql<__ST, __DB>, fn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>[src]
fn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>See the trait documentation.
const FIELDS_NEEDED: usize
FIELDS_NEEDED: usize = 1
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<__ST, __DB> Queryable<__ST, __DB> for PgDate where
__DB: Backend,
Self: FromSql<__ST, __DB>, [src]
impl<__ST, __DB> Queryable<__ST, __DB> for PgDate where
__DB: Backend,
Self: FromSql<__ST, __DB>, type Row = Self
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self[src]
fn build(row: Self::Row) -> SelfConstruct an instance of this type
impl<'expr> AsExpression<Date> for &'expr PgDate[src]
impl<'expr> AsExpression<Date> for &'expr PgDatetype Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr> AsExpression<Nullable<Date>> for &'expr PgDate[src]
impl<'expr> AsExpression<Nullable<Date>> for &'expr PgDatetype Expression = Bound<Nullable<Date>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
__DB: Backend,
Self: ToSql<Date, __DB>, [src]
impl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
__DB: Backend,
Self: ToSql<Date, __DB>, impl AsExpression<Date> for PgDate[src]
impl AsExpression<Date> for PgDatetype Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Nullable<Date>> for PgDate[src]
impl AsExpression<Nullable<Date>> for PgDatetype Expression = Bound<Nullable<Date>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl Debug for PgDate[src]
impl Debug for PgDatefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for PgDate[src]
impl Clone for PgDatefn clone(&self) -> PgDate[src]
fn clone(&self) -> PgDateReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for PgDate[src]
impl Copy for PgDateimpl PartialEq for PgDate[src]
impl PartialEq for PgDatefn eq(&self, other: &PgDate) -> bool[src]
fn eq(&self, other: &PgDate) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PgDate) -> bool[src]
fn ne(&self, other: &PgDate) -> boolThis method tests for !=.
impl Eq for PgDate[src]
impl Eq for PgDateimpl PartialOrd for PgDate[src]
impl PartialOrd for PgDatefn partial_cmp(&self, other: &PgDate) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &PgDate) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &PgDate) -> bool[src]
fn lt(&self, other: &PgDate) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &PgDate) -> bool[src]
fn le(&self, other: &PgDate) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &PgDate) -> bool[src]
fn gt(&self, other: &PgDate) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &PgDate) -> bool[src]
fn ge(&self, other: &PgDate) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for PgDate[src]
impl Ord for PgDatefn cmp(&self, other: &PgDate) -> Ordering[src]
fn cmp(&self, other: &PgDate) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl ToSql<Date, Pg> for PgDate[src]
impl ToSql<Date, Pg> for PgDateimpl FromSql<Date, Pg> for PgDate[src]
impl FromSql<Date, Pg> for PgDate