Struct diesel::mysql::types::Datetime
[−]
[src]
pub struct Datetime;
Represents the MySQL datetime type.
ToSql
impls
chrono::NaiveDateTime
withfeature = "chrono"
FromSql
impls
chrono::NaiveDateTime
withfeature = "chrono"
Trait Implementations
impl ToSql<Datetime, Mysql> for MYSQL_TIME
[src]
impl FromSql<Datetime, Mysql> for MYSQL_TIME
[src]
impl ToSql<Datetime, Mysql> for NaiveDateTime
[src]
impl FromSql<Datetime, Mysql> for NaiveDateTime
[src]
impl QueryId for Datetime
[src]
type 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]
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]
fn metadata(_: &()) -> MysqlType
[src]
Fetch the metadata for the given type Read more
fn row_metadata(
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
[src]
out: &mut Vec<Self::TypeMetadata>,
lookup: &Self::MetadataLookup
)
Fetch the metadata for a tuple representing an entire row Read more
impl Debug for Datetime
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Datetime
[src]
fn clone(&self) -> Datetime
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Datetime
[src]
impl Default for Datetime
[src]
impl<'expr> AsExpression<Datetime> for &'expr NaiveDateTime
[src]
type Expression = Bound<Datetime, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl<'expr2, 'expr> AsExpression<Datetime> for &'expr2 &'expr NaiveDateTime
[src]
type Expression = Bound<Datetime, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion
impl AsExpression<Datetime> for NaiveDateTime
[src]
type Expression = Bound<Datetime, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
Perform the conversion