[−][src]Struct diesel::pg::data_types::PgDate
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]
__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]
impl FromSql<Date, Pg> for PgDate
[src]
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgDate where
__DB: Backend,
Self: FromSql<__ST, __DB>,
[src]
__DB: Backend,
Self: FromSql<__ST, __DB>,
fn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>
[src]
const FIELDS_NEEDED: usize
[src]
impl<'expr> AsExpression<Date> for &'expr PgDate
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr> AsExpression<Nullable<Date>> for &'expr PgDate
[src]
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Date> for PgDate
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Nullable<Date>> for PgDate
[src]
type Expression = Bound<Nullable<Date>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
__DB: Backend,
Self: ToSql<Date, __DB>,
[src]
__DB: Backend,
Self: ToSql<Date, __DB>,
impl ToSql<Date, Pg> for PgDate
[src]
impl Clone for PgDate
[src]
impl Copy for PgDate
[src]
impl Eq for PgDate
[src]
impl Ord for PgDate
[src]
fn cmp(&self, other: &PgDate) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PgDate> for PgDate
[src]
impl PartialOrd<PgDate> for PgDate
[src]
fn partial_cmp(&self, other: &PgDate) -> Option<Ordering>
[src]
fn lt(&self, other: &PgDate) -> bool
[src]
fn le(&self, other: &PgDate) -> bool
[src]
fn gt(&self, other: &PgDate) -> bool
[src]
fn ge(&self, other: &PgDate) -> bool
[src]
impl Debug for PgDate
[src]
Auto Trait Implementations
impl Send for PgDate
impl Sync for PgDate
impl Unpin for PgDate
impl UnwindSafe for PgDate
impl RefUnwindSafe for PgDate
Blanket Implementations
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
[src]
Self: AsExpression<T> + Sized,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,