Struct diesel::mysql::types::Datetime[][src]

pub struct Datetime;

Represents the MySQL datetime type.

ToSql impls

FromSql impls

Trait Implementations

impl ToSql<Datetime, Mysql> for MYSQL_TIME
[src]

See the trait documentation.

impl FromSql<Datetime, Mysql> for MYSQL_TIME
[src]

See the trait documentation.

impl ToSql<Datetime, Mysql> for NaiveDateTime
[src]

See the trait documentation.

impl FromSql<Datetime, Mysql> for NaiveDateTime
[src]

See the trait documentation.

impl QueryId for Datetime
[src]

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

HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl NotNull for Datetime
[src]

impl SingleValue for Datetime
[src]

impl HasSqlType<Datetime> for Mysql
[src]

Fetch the metadata for the given type Read more

impl Debug for Datetime
[src]

Formats the value using the given formatter. Read more

impl Clone for Datetime
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Datetime
[src]

impl Default for Datetime
[src]

Returns the "default value" for a type. Read more

impl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime
[src]

The expression being returned

Perform the conversion

impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime
[src]

The expression being returned

Perform the conversion

impl AsExpression<Datetime> for NaiveDateTime
[src]

The expression being returned

Perform the conversion

Auto Trait Implementations

impl Send for Datetime

impl Sync for Datetime