[][src]Struct diesel::sql_types::Date

pub struct Date;

The date SQL type.

ToSql impls

FromSql impls

Trait Implementations

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<'expr> AsExpression<Date> for &'expr PgDate[src]

type Expression = Bound<Date, Self>

The expression being returned

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

type Expression = Bound<Date, Self>

The expression being returned

impl AsExpression<Date> for PgDate[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr> AsExpression<Date> for &'expr NaiveDate[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr NaiveDate[src]

type Expression = Bound<Date, Self>

The expression being returned

impl AsExpression<Date> for NaiveDate[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr> AsExpression<Date> for &'expr String[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr String[src]

type Expression = Bound<Date, Self>

The expression being returned

impl AsExpression<Date> for String[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr> AsExpression<Date> for &'expr str[src]

type Expression = Bound<Date, Self>

The expression being returned

impl<'expr2, 'expr> AsExpression<Date> for &'expr2 &'expr str[src]

type Expression = Bound<Date, Self>

The expression being returned

impl QueryId for Date[src]

type QueryId = Date

A type which uniquely represents Self in a SQL query. Read more

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]

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 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 SqlOrd for Date[src]

impl HasSqlType<Date> for Sqlite[src]

impl HasSqlType<Date> for Mysql[src]

impl HasSqlType<Date> for Pg[src]

impl NotNull for Date[src]

impl SingleValue for Date[src]

impl Default for Date[src]

impl Clone for Date[src]

impl Copy for Date[src]

impl Debug for Date[src]

Auto Trait Implementations

impl Send for Date

impl Unpin for Date

impl Sync for Date

impl UnwindSafe for Date

impl RefUnwindSafe for Date

Blanket Implementations

impl<T> IntoSql for T[src]

impl<T> IntoNullable for T where
    T: NotNull
[src]

type Nullable = Nullable<T>

The nullable representation of this type. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]