Struct diesel::mysql::types::Datetime [−][src]
pub struct Datetime;
Represents the MySQL datetime type.
ToSql impls
chrono::NaiveDateTimewithfeature = "chrono"
FromSql impls
chrono::NaiveDateTimewithfeature = "chrono"
Trait Implementations
impl ToSql<Datetime, Mysql> for MYSQL_TIME[src]
impl ToSql<Datetime, Mysql> for MYSQL_TIMEimpl FromSql<Datetime, Mysql> for MYSQL_TIME[src]
impl FromSql<Datetime, Mysql> for MYSQL_TIMEimpl ToSql<Datetime, Mysql> for NaiveDateTime[src]
impl ToSql<Datetime, Mysql> for NaiveDateTimeimpl FromSql<Datetime, Mysql> for NaiveDateTime[src]
impl FromSql<Datetime, Mysql> for NaiveDateTimeimpl QueryId for Datetime[src]
impl QueryId for Datetimetype QueryId = Datetime
A type which uniquely represents Self in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>[src]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl NotNull for Datetime[src]
impl NotNull for Datetimeimpl SingleValue for Datetime[src]
impl SingleValue for Datetimeimpl HasSqlType<Datetime> for Mysql[src]
impl HasSqlType<Datetime> for Mysqlimpl Debug for Datetime[src]
impl Debug for Datetimefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Datetime[src]
impl Clone for Datetimefn clone(&self) -> Datetime[src]
fn clone(&self) -> DatetimeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Datetime[src]
impl Copy for Datetimeimpl Default for Datetime[src]
impl Default for Datetimeimpl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime[src]
impl<'expr> AsExpression<Datetime> for &'expr NaiveDateTimetype Expression = Bound<Datetime, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime[src]
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTimetype Expression = Bound<Datetime, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Datetime> for NaiveDateTime[src]
impl AsExpression<Datetime> for NaiveDateTimetype Expression = Bound<Datetime, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion