Struct diesel::sql_types::Timestamp
[−]
[src]
pub struct Timestamp;
The timestamp SQL type.
ToSql
impls
std::time::SystemTime
(PG only)chrono::NaiveDateTime
withfeature = "chrono"
time::Timespec
withfeature = "deprecated-time"
(PG only)
FromSql
impls
std::time::SystemTime
(PG only)chrono::NaiveDateTime
withfeature = "chrono"
time::Timespec
withfeature = "deprecated-time"
(PG only)
Trait Implementations
impl Add for Timestamp
[src]
type Rhs = Interval
The SQL type which can be added to this one
type Output = Timestamp
The SQL type of the result of adding Rhs
to Self
impl Sub for Timestamp
[src]
type Rhs = Interval
The SQL type which can be subtracted from this one
type Output = Timestamp
The SQL type of the result of subtracting Rhs
from Self
impl SqlOrd for Timestamp
[src]
impl Debug for Timestamp
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Timestamp
[src]
fn clone(&self) -> Timestamp
[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 Timestamp
[src]
impl Default for Timestamp
[src]
impl ToSql<Timestamp, Mysql> for MYSQL_TIME
[src]
impl FromSql<Timestamp, Mysql> for MYSQL_TIME
[src]
impl ToSql<Timestamp, Mysql> for NaiveDateTime
[src]
impl FromSql<Timestamp, Mysql> for NaiveDateTime
[src]
impl ToSql<Timestamp, Pg> for SystemTime
[src]
impl FromSql<Timestamp, Pg> for SystemTime
[src]
impl FromSql<Timestamp, Pg> for NaiveDateTime
[src]
impl ToSql<Timestamp, Pg> for NaiveDateTime
[src]
impl ToSql<Timestamp, Pg> for Timespec
[src]
impl FromSql<Timestamp, Pg> for Timespec
[src]
impl ToSql<Timestamp, Pg> for PgTimestamp
[src]
impl FromSql<Timestamp, Pg> for PgTimestamp
[src]
impl FromSql<Timestamp, Sqlite> for NaiveDateTime
[src]
fn from_sql(value: Option<&<Sqlite as Backend>::RawValue>) -> Result<Self>
[src]
See the trait documentation.
impl ToSql<Timestamp, Sqlite> for NaiveDateTime
[src]
impl FromSql<Timestamp, Sqlite> for *const str
[src]
The returned pointer is only valid for the lifetime to the argument of
from_sql
. This impl is intended for uses where you want to write a new
impl in terms of String
, but don't want to allocate. We have to return a
raw pointer instead of a reference with a lifetime due to the structure of
FromSql