pub struct Datetime;
Available on crate feature
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§
source§impl<'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
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime
Available on crate feature chrono
only.
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime
Available on crate feature
chrono
only.§type Expression = Bound<Datetime, &'expr2 &'expr NaiveDateTime>
type Expression = Bound<Datetime, &'expr2 &'expr NaiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr OffsetDateTime
Available on crate feature time
only.
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr OffsetDateTime
Available on crate feature
time
only.§type Expression = Bound<Datetime, &'expr2 &'expr OffsetDateTime>
type Expression = Bound<Datetime, &'expr2 &'expr OffsetDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr PrimitiveDateTime
Available on crate feature time
only.
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr PrimitiveDateTime
Available on crate feature
time
only.§type Expression = Bound<Datetime, &'expr2 &'expr PrimitiveDateTime>
type Expression = Bound<Datetime, &'expr2 &'expr PrimitiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'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
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime
Available on crate feature chrono
only.
impl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime
Available on crate feature
chrono
only.§type Expression = Bound<Datetime, &'expr NaiveDateTime>
type Expression = Bound<Datetime, &'expr NaiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Datetime> for &'expr OffsetDateTime
Available on crate feature time
only.
impl<'expr> AsExpression<Datetime> for &'expr OffsetDateTime
Available on crate feature
time
only.§type Expression = Bound<Datetime, &'expr OffsetDateTime>
type Expression = Bound<Datetime, &'expr OffsetDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Datetime> for &'expr PrimitiveDateTime
Available on crate feature time
only.
impl<'expr> AsExpression<Datetime> for &'expr PrimitiveDateTime
Available on crate feature
time
only.§type Expression = Bound<Datetime, &'expr PrimitiveDateTime>
type Expression = Bound<Datetime, &'expr PrimitiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Datetime> for MysqlTime
impl AsExpression<Datetime> for MysqlTime
§type Expression = Bound<Datetime, MysqlTime>
type Expression = Bound<Datetime, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Datetime> for NaiveDateTime
Available on crate feature chrono
only.
impl AsExpression<Datetime> for NaiveDateTime
Available on crate feature
chrono
only.§type Expression = Bound<Datetime, NaiveDateTime>
type Expression = Bound<Datetime, NaiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Datetime> for OffsetDateTime
Available on crate feature time
only.
impl AsExpression<Datetime> for OffsetDateTime
Available on crate feature
time
only.§type Expression = Bound<Datetime, OffsetDateTime>
type Expression = Bound<Datetime, OffsetDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Datetime> for PrimitiveDateTime
Available on crate feature time
only.
impl AsExpression<Datetime> for PrimitiveDateTime
Available on crate feature
time
only.§type Expression = Bound<Datetime, PrimitiveDateTime>
type Expression = Bound<Datetime, PrimitiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl HasSqlType<Datetime> for Mysql
impl HasSqlType<Datetime> for Mysql
source§impl QueryId for Datetime
impl QueryId for Datetime
source§const 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 moreimpl Copy for Datetime
impl SingleValue for Datetime
impl SqlOrd for Datetime
Auto Trait Implementations§
impl Freeze for Datetime
impl RefUnwindSafe for Datetime
impl Send for Datetime
impl Sync for Datetime
impl Unpin for Datetime
impl UnwindSafe for Datetime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
source§impl<T> IntoNotNullable for T
impl<T> IntoNotNullable for T
§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more