Struct block_tools::db::use_diesel::data_types::PgDate [−][src]
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, &'expr PgDate>
The expression being returned
pub fn as_expression(self) -> <&'expr PgDate as AsExpression<Date>>::Expression
[src]
impl AsExpression<Date> for PgDate
[src]
type Expression = Bound<Date, PgDate>
The expression being returned
pub fn as_expression(self) -> <PgDate as AsExpression<Date>>::Expression
[src]
impl AsExpression<Nullable<Date>> for PgDate
[src]
type Expression = Bound<Nullable<Date>, PgDate>
The expression being returned
pub fn as_expression(
self
) -> <PgDate as AsExpression<Nullable<Date>>>::Expression
[src]
self
) -> <PgDate as AsExpression<Nullable<Date>>>::Expression
impl<'expr> AsExpression<Nullable<Date>> for &'expr PgDate
[src]
type Expression = Bound<Nullable<Date>, &'expr PgDate>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgDate as AsExpression<Nullable<Date>>>::Expression
[src]
self
) -> <&'expr PgDate as AsExpression<Nullable<Date>>>::Expression
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]
pub fn from_sql(
bytes: Option<&[u8]>
) -> Result<PgDate, Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&[u8]>
) -> Result<PgDate, Box<dyn Error + 'static + Send + Sync, Global>>
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgDate where
__DB: Backend,
PgDate: FromSql<__ST, __DB>,
[src]
__DB: Backend,
PgDate: FromSql<__ST, __DB>,
pub fn build_from_row<R>(
row: &mut R
) -> Result<PgDate, Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<__DB>,
[src]
row: &mut R
) -> Result<PgDate, Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<__DB>,
pub const FIELDS_NEEDED: usize
[src]
impl Ord for PgDate
[src]
pub fn cmp(&self, other: &PgDate) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PgDate> for PgDate
[src]
impl PartialOrd<PgDate> for PgDate
[src]
pub fn partial_cmp(&self, other: &PgDate) -> Option<Ordering>
[src]
pub fn lt(&self, other: &PgDate) -> bool
[src]
pub fn le(&self, other: &PgDate) -> bool
[src]
pub fn gt(&self, other: &PgDate) -> bool
[src]
pub fn ge(&self, other: &PgDate) -> bool
[src]
impl<__ST, __DB> Queryable<__ST, __DB> for PgDate where
__DB: Backend,
PgDate: FromSql<__ST, __DB>,
[src]
__DB: Backend,
PgDate: FromSql<__ST, __DB>,
type Row = PgDate
The Rust type you'd like to map from. Read more
pub fn build(row: <PgDate as Queryable<__ST, __DB>>::Row) -> PgDate
[src]
impl StructuralEq for PgDate
[src]
impl StructuralPartialEq for PgDate
[src]
impl ToSql<Date, Pg> for PgDate
[src]
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, Pg>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, Pg>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl<__DB> ToSql<Nullable<Date>, __DB> for PgDate where
__DB: Backend,
PgDate: ToSql<Date, __DB>,
[src]
__DB: Backend,
PgDate: ToSql<Date, __DB>,
Auto Trait Implementations
impl RefUnwindSafe for PgDate
[src]
impl Send for PgDate
[src]
impl Sync for PgDate
[src]
impl Unpin for PgDate
[src]
impl UnwindSafe for PgDate
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,