[−][src]Struct diesel::sql_types::Date
The date SQL type.
ToSql
impls
chrono::NaiveDate
withfeature = "chrono"
FromSql
impls
chrono::NaiveDate
withfeature = "chrono"
Trait Implementations
impl Add for Date
[src]
type Rhs = Interval
The SQL type which can be added to this one
type Output = Timestamp
The SQL type of the result of adding Rhs
to Self
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<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr PgDate
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr str
[src]
type Expression = Bound<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<'expr> AsExpression<Date> for &'expr NaiveDate
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr NaiveDate
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Date> for NaiveDate
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr> AsExpression<Date> for &'expr String
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr String
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Date> for String
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr> AsExpression<Date> for &'expr str
[src]
type Expression = Bound<Date, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl Clone for Date
[src]
impl Copy for Date
[src]
impl Debug for Date
[src]
impl Default for Date
[src]
impl FromSql<Date, Mysql> for MYSQL_TIME
[src]
impl FromSql<Date, Mysql> for NaiveDate
[src]
impl FromSql<Date, Pg> for NaiveDate
[src]
impl FromSql<Date, Pg> for PgDate
[src]
impl FromSql<Date, Sqlite> for NaiveDate
[src]
impl FromSql<Date, Sqlite> for *const str
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql
impl HasSqlType<Date> for Sqlite
[src]
fn metadata(_: &()) -> SqliteType
[src]
impl HasSqlType<Date> for Mysql
[src]
impl HasSqlType<Date> for Pg
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
impl NotNull for Date
[src]
impl QueryId for Date
[src]
type QueryId = Date
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
[src]
fn query_id() -> Option<TypeId>
[src]
impl SingleValue for Date
[src]
impl SqlOrd for Date
[src]
impl Sub for Date
[src]
type Rhs = Interval
The SQL type which can be subtracted from this one
type Output = Timestamp
The SQL type of the result of subtracting Rhs
from Self
impl ToSql<Date, Mysql> for MYSQL_TIME
[src]
impl ToSql<Date, Mysql> for NaiveDate
[src]
impl ToSql<Date, Pg> for NaiveDate
[src]
impl ToSql<Date, Pg> for PgDate
[src]
impl ToSql<Date, Sqlite> for NaiveDate
[src]
impl ToSql<Date, Sqlite> for str
[src]
impl ToSql<Date, Sqlite> for String
[src]
Auto Trait Implementations
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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,
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> IntoNullable for T where
T: NotNull,
[src]
T: NotNull,
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> 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>,