pub struct Datetime;
mysql_backend
only.Expand description
Represents the MySQL datetime type.
ToSql
impls
chrono::NaiveDateTime
withfeature = "chrono"
time::PrimitiveDateTime
withfeature = "time"
time::OffsetDateTime
withfeature = "time"
FromSql
impls
chrono::NaiveDateTime
withfeature = "chrono"
time::PrimitiveDateTime
withfeature = "time"
time::OffsetDateTime
withfeature = "time"
Trait Implementations
sourceimpl<'expr> AsExpression<Datetime> for &'expr MysqlTime
impl<'expr> AsExpression<Datetime> for &'expr MysqlTime
type Expression = Bound<Datetime, &'expr MysqlTime>
type Expression = Bound<Datetime, &'expr MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime
impl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime
type Expression = Bound<Datetime, &'expr NaiveDateTime>
type Expression = Bound<Datetime, &'expr NaiveDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Datetime> for &'expr OffsetDateTime
impl<'expr> AsExpression<Datetime> for &'expr OffsetDateTime
type Expression = Bound<Datetime, &'expr OffsetDateTime>
type Expression = Bound<Datetime, &'expr OffsetDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr> AsExpression<Datetime> for &'expr PrimitiveDateTime
impl<'expr> AsExpression<Datetime> for &'expr PrimitiveDateTime
type Expression = Bound<Datetime, &'expr PrimitiveDateTime>
type Expression = Bound<Datetime, &'expr PrimitiveDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr MysqlTime
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr MysqlTime
type Expression = Bound<Datetime, &'expr2 &'expr MysqlTime>
type Expression = Bound<Datetime, &'expr2 &'expr MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime
type Expression = Bound<Datetime, &'expr2 &'expr NaiveDateTime>
type Expression = Bound<Datetime, &'expr2 &'expr NaiveDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr OffsetDateTime
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr OffsetDateTime
type Expression = Bound<Datetime, &'expr2 &'expr OffsetDateTime>
type Expression = Bound<Datetime, &'expr2 &'expr OffsetDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr PrimitiveDateTime
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr PrimitiveDateTime
type Expression = Bound<Datetime, &'expr2 &'expr PrimitiveDateTime>
type Expression = Bound<Datetime, &'expr2 &'expr PrimitiveDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Datetime> for MysqlTime
impl AsExpression<Datetime> for MysqlTime
type Expression = Bound<Datetime, MysqlTime>
type Expression = Bound<Datetime, MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Datetime> for NaiveDateTime
impl AsExpression<Datetime> for NaiveDateTime
type Expression = Bound<Datetime, NaiveDateTime>
type Expression = Bound<Datetime, NaiveDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Datetime> for OffsetDateTime
impl AsExpression<Datetime> for OffsetDateTime
type Expression = Bound<Datetime, OffsetDateTime>
type Expression = Bound<Datetime, OffsetDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Datetime> for PrimitiveDateTime
impl AsExpression<Datetime> for PrimitiveDateTime
type Expression = Bound<Datetime, PrimitiveDateTime>
type Expression = Bound<Datetime, PrimitiveDateTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl FromSql<Datetime, Mysql> for MysqlTime
impl FromSql<Datetime, Mysql> for MysqlTime
sourcefn from_sql(value: MysqlValue<'_>) -> Result<Self>
fn from_sql(value: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl FromSql<Datetime, Mysql> for NaiveDateTime
Available on crate feature chrono
only.
impl FromSql<Datetime, Mysql> for NaiveDateTime
chrono
only.sourcefn from_sql(bytes: MysqlValue<'_>) -> Result<Self>
fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl FromSql<Datetime, Mysql> for OffsetDateTime
Available on crate feature time
only.
impl FromSql<Datetime, Mysql> for OffsetDateTime
time
only.sourcefn from_sql(bytes: MysqlValue<'_>) -> Result<Self>
fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl FromSql<Datetime, Mysql> for PrimitiveDateTime
Available on crate feature time
only.
impl FromSql<Datetime, Mysql> for PrimitiveDateTime
time
only.sourcefn from_sql(bytes: MysqlValue<'_>) -> Result<Self>
fn from_sql(bytes: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl HasSqlType<Datetime> for Mysql
impl HasSqlType<Datetime> for Mysql
sourceimpl QueryId for Datetime
impl QueryId for Datetime
sourceconst HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
sourceimpl ToSql<Datetime, Mysql> for NaiveDateTime
Available on crate feature chrono
only.
impl ToSql<Datetime, Mysql> for NaiveDateTime
chrono
only.sourceimpl ToSql<Datetime, Mysql> for OffsetDateTime
Available on crate feature time
only.
impl ToSql<Datetime, Mysql> for OffsetDateTime
time
only.sourceimpl ToSql<Datetime, Mysql> for PrimitiveDateTime
Available on crate feature time
only.
impl ToSql<Datetime, Mysql> for PrimitiveDateTime
time
only.impl Copy for Datetime
impl SingleValue for Datetime
impl SqlOrd for Datetime
mysql
only.Auto Trait Implementations
impl RefUnwindSafe for Datetime
impl Send for Datetime
impl Sync for Datetime
impl Unpin for Datetime
impl UnwindSafe for Datetime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
impl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
sourceimpl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
impl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert &self
to an expression for Diesel’s query builder. Read more