[−][src]Struct diesel::sql_types::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 FromSql<Timestamp, Mysql> for MYSQL_TIME
[src]
impl FromSql<Timestamp, Mysql> for MYSQL_TIME
impl FromSql<Timestamp, Mysql> for NaiveDateTime
[src]
impl FromSql<Timestamp, Mysql> for NaiveDateTime
impl FromSql<Timestamp, Pg> for NaiveDateTime
[src]
impl FromSql<Timestamp, Pg> for NaiveDateTime
impl FromSql<Timestamp, Pg> for Timespec
[src]
impl FromSql<Timestamp, Pg> for Timespec
impl FromSql<Timestamp, Pg> for SystemTime
[src]
impl FromSql<Timestamp, Pg> for SystemTime
impl FromSql<Timestamp, Pg> for PgTimestamp
[src]
impl FromSql<Timestamp, Pg> for PgTimestamp
impl FromSql<Timestamp, Sqlite> for NaiveDateTime
[src]
impl FromSql<Timestamp, Sqlite> for NaiveDateTime
impl FromSql<Timestamp, Sqlite> for *const str
[src]
impl FromSql<Timestamp, Sqlite> for *const str
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
impl<'expr> AsExpression<Timestamp> for &'expr Timespec
[src]
impl<'expr> AsExpression<Timestamp> for &'expr Timespec
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr Timespec
[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr Timespec
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl AsExpression<Timestamp> for Timespec
[src]
impl AsExpression<Timestamp> for Timespec
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr> AsExpression<Timestamp> for &'expr PgTimestamp
[src]
impl<'expr> AsExpression<Timestamp> for &'expr PgTimestamp
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr PgTimestamp
[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr PgTimestamp
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl AsExpression<Timestamp> for PgTimestamp
[src]
impl AsExpression<Timestamp> for PgTimestamp
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr> AsExpression<Timestamp> for &'expr SystemTime
[src]
impl<'expr> AsExpression<Timestamp> for &'expr SystemTime
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr SystemTime
[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr SystemTime
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl AsExpression<Timestamp> for SystemTime
[src]
impl AsExpression<Timestamp> for SystemTime
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr> AsExpression<Timestamp> for &'expr NaiveDateTime
[src]
impl<'expr> AsExpression<Timestamp> for &'expr NaiveDateTime
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr NaiveDateTime
[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr NaiveDateTime
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl AsExpression<Timestamp> for NaiveDateTime
[src]
impl AsExpression<Timestamp> for NaiveDateTime
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr> AsExpression<Timestamp> for &'expr String
[src]
impl<'expr> AsExpression<Timestamp> for &'expr String
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr String
[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr String
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl AsExpression<Timestamp> for String
[src]
impl AsExpression<Timestamp> for String
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr> AsExpression<Timestamp> for &'expr str
[src]
impl<'expr> AsExpression<Timestamp> for &'expr str
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr str
[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr str
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression | [src] |
impl QueryId for Timestamp
[src]
impl QueryId for Timestamp
type QueryId = Timestamp
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
[src]
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 ToSql<Timestamp, Mysql> for MYSQL_TIME
[src]
impl ToSql<Timestamp, Mysql> for MYSQL_TIME
impl ToSql<Timestamp, Mysql> for NaiveDateTime
[src]
impl ToSql<Timestamp, Mysql> for NaiveDateTime
impl ToSql<Timestamp, Pg> for NaiveDateTime
[src]
impl ToSql<Timestamp, Pg> for NaiveDateTime
impl ToSql<Timestamp, Pg> for Timespec
[src]
impl ToSql<Timestamp, Pg> for Timespec
impl ToSql<Timestamp, Pg> for SystemTime
[src]
impl ToSql<Timestamp, Pg> for SystemTime
impl ToSql<Timestamp, Pg> for PgTimestamp
[src]
impl ToSql<Timestamp, Pg> for PgTimestamp
impl ToSql<Timestamp, Sqlite> for NaiveDateTime
[src]
impl ToSql<Timestamp, Sqlite> for NaiveDateTime
impl ToSql<Timestamp, Sqlite> for str
[src]
impl ToSql<Timestamp, Sqlite> for str
impl ToSql<Timestamp, Sqlite> for String
[src]
impl ToSql<Timestamp, Sqlite> for String
impl Add for Timestamp
[src]
impl Add for Timestamp
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]
impl Sub for Timestamp
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 SqlOrd for Timestamp
impl HasSqlType<Timestamp> for Sqlite
[src]
impl HasSqlType<Timestamp> for Sqlite
fn metadata(_: &()) -> SqliteType | [src] |
impl HasSqlType<Timestamp> for Mysql
[src]
impl HasSqlType<Timestamp> for Mysql
impl HasSqlType<Timestamp> for Pg
[src]
impl HasSqlType<Timestamp> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata | [src] |
impl NotNull for Timestamp
[src]
impl NotNull for Timestamp
impl SingleValue for Timestamp
[src]
impl SingleValue for Timestamp
impl Copy for Timestamp
[src]
impl Copy for Timestamp
impl Default for Timestamp
[src]
impl Default for Timestamp
impl Clone for Timestamp
[src]
impl Clone for Timestamp
fn clone(&self) -> Timestamp | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for Timestamp
[src]
impl Debug for Timestamp
Auto Trait Implementations
Blanket Implementations
impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
fn into_sql<T>(self) -> AsExprOf<Self, T> where | [src] |
Convert self
to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where | [src] |
Convert &self
to an expression for Diesel's query builder. Read more
impl<T> IntoNullable for T where
T: NotNull,
[src]
impl<T> IntoNullable for T where
T: NotNull,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |