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<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr MysqlTime
impl<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr MysqlTime
Source§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<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr NaiveDateTime
Available on crate feature chrono
only.
impl<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr NaiveDateTime
Available on crate feature
chrono
only.Source§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<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr OffsetDateTime
Available on crate feature time
only.
impl<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr OffsetDateTime
Available on crate feature
time
only.Source§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<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr PrimitiveDateTime
Available on crate feature time
only.
impl<'__expr, '__expr2> AsExpression<Datetime> for &'__expr2 &'__expr PrimitiveDateTime
Available on crate feature
time
only.Source§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
Source§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.Source§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.Source§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.Source§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
Source§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.Source§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.Source§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.Source§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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoNotNullable for T
impl<T> IntoNotNullable for T
Source§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more