[−][src]Struct diesel::sql_types::Timestamp
The timestamp SQL type.
ToSql impls
std::time::SystemTime(PG only)chrono::NaiveDateTimewithfeature = "chrono"time::Timespecwithfeature = "deprecated-time"(PG only)
FromSql impls
std::time::SystemTime(PG only)chrono::NaiveDateTimewithfeature = "chrono"time::Timespecwithfeature = "deprecated-time"(PG only)
Trait Implementations
impl FromSql<Timestamp, Sqlite> for NaiveDateTime[src]
impl FromSql<Timestamp, Sqlite> for NaiveDateTimeimpl FromSql<Timestamp, Sqlite> for *const str[src]
impl FromSql<Timestamp, Sqlite> for *const strThe 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 SystemTime[src]
impl<'expr> AsExpression<Timestamp> for &'expr SystemTimetype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr SystemTime[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr SystemTimetype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl AsExpression<Timestamp> for SystemTime[src]
impl AsExpression<Timestamp> for SystemTimetype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr> AsExpression<Timestamp> for &'expr NaiveDateTime[src]
impl<'expr> AsExpression<Timestamp> for &'expr NaiveDateTimetype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr NaiveDateTime[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr NaiveDateTimetype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl AsExpression<Timestamp> for NaiveDateTime[src]
impl AsExpression<Timestamp> for NaiveDateTimetype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr> AsExpression<Timestamp> for &'expr String[src]
impl<'expr> AsExpression<Timestamp> for &'expr Stringtype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr String[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr Stringtype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl AsExpression<Timestamp> for String[src]
impl AsExpression<Timestamp> for Stringtype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr> AsExpression<Timestamp> for &'expr str[src]
impl<'expr> AsExpression<Timestamp> for &'expr strtype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr str[src]
impl<'expr2, 'expr> AsExpression<Timestamp> for &'expr2 &'expr strtype Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::Expressionimpl QueryId for Timestamp[src]
impl QueryId for Timestamptype 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]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl ToSql<Timestamp, Sqlite> for NaiveDateTime[src]
impl ToSql<Timestamp, Sqlite> for NaiveDateTimeimpl ToSql<Timestamp, Sqlite> for str[src]
impl ToSql<Timestamp, Sqlite> for strimpl ToSql<Timestamp, Sqlite> for String[src]
impl ToSql<Timestamp, Sqlite> for Stringimpl Add for Timestamp[src]
impl Add for Timestamptype 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 Timestamptype 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 Timestampimpl HasSqlType<Timestamp> for Sqlite[src]
impl HasSqlType<Timestamp> for Sqlitefn metadata(_: &()) -> SqliteType[src]
fn metadata(_: &()) -> SqliteTypeimpl NotNull for Timestamp[src]
impl NotNull for Timestampimpl SingleValue for Timestamp[src]
impl SingleValue for Timestampimpl Default for Timestamp[src]
impl Default for Timestampimpl Clone for Timestamp[src]
impl Clone for Timestampfn clone(&self) -> Timestamp[src]
fn clone(&self) -> Timestampfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Timestamp[src]
impl Copy for Timestampimpl Debug for Timestamp[src]
impl Debug for TimestampAuto Trait Implementations
Blanket Implementations
impl<T> IntoSql for T[src]
impl<T> IntoSql for Tfn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized, [src]
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized, Convert self to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>, [src]
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>, 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 Timpl<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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, 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]
fn get_type_id(&self) -> TypeIdimpl<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]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>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]
fn borrow_mut(&mut self) -> &mut T