Struct diesel::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 QueryId for Timestamp
[src]
type QueryId = Self
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 Timestamp
[src]
impl SingleValue for Timestamp
[src]
impl Debug for Timestamp
[src]
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