Struct diesel::sql_types::TimestamptzSqlite
source · [−]pub struct TimestamptzSqlite;
sqlite
only.Expand description
The SQLite timestamp with time zone type
ToSql
impls
chrono::NaiveDateTime
withfeature = "chrono"
chrono::DateTime
withfeature = "chrono"
FromSql
impls
chrono::NaiveDateTime
withfeature = "chrono"
chrono::DateTime
withfeature = "chrono"
Trait Implementations
sourceimpl AsExpression<Timestamptz> for now
impl AsExpression<Timestamptz> for now
type Expression = Coerce<now, Timestamptz>
type Expression = Coerce<now, Timestamptz>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr DateTime<Tz>
impl<'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr DateTime<Tz>
type Expression = Bound<Timestamptz, &'expr DateTime<Tz>>
type Expression = Bound<Timestamptz, &'expr DateTime<Tz>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz>
impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz>
type Expression = Bound<Timestamptz, &'expr2 &'expr DateTime<Tz>>
type Expression = Bound<Timestamptz, &'expr2 &'expr DateTime<Tz>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
type Expression = Bound<Timestamptz, DateTime<Tz>>
type Expression = Bound<Timestamptz, DateTime<Tz>>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl Clone for Timestamptz
impl Clone for Timestamptz
sourcefn clone(&self) -> Timestamptz
fn clone(&self) -> Timestamptz
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Timestamptz
impl Debug for Timestamptz
sourceimpl Default for Timestamptz
impl Default for Timestamptz
sourcefn default() -> Timestamptz
fn default() -> Timestamptz
Returns the “default value” for a type. Read more
sourceimpl FromSql<Timestamptz, Sqlite> for NaiveDateTime
Available on crate feature chrono
only.
impl FromSql<Timestamptz, Sqlite> for NaiveDateTime
chrono
only.sourceimpl FromSql<Timestamptz, Sqlite> for String
impl FromSql<Timestamptz, Sqlite> for String
sourcefn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>
fn from_sql(value: SqliteValue<'_, '_, '_>) -> Result<Self>
See the trait documentation.
sourceimpl HasSqlType<Timestamptz> for Sqlite
impl HasSqlType<Timestamptz> for Sqlite
sourcefn metadata(_: &mut ()) -> SqliteType
fn metadata(_: &mut ()) -> SqliteType
Fetch the metadata for the given type Read more
sourceimpl QueryId for Timestamptz
impl QueryId for Timestamptz
type QueryId = Timestamptz
type QueryId = Timestamptz
A type which uniquely represents Self
in a SQL query. Read more
sourceconst HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
sourceimpl ToSql<Timestamptz, Sqlite> for NaiveDateTime
Available on crate feature chrono
only.
impl ToSql<Timestamptz, Sqlite> for NaiveDateTime
chrono
only.sourceimpl<TZ: TimeZone> ToSql<Timestamptz, Sqlite> for DateTime<TZ>
Available on crate feature chrono
only.
impl<TZ: TimeZone> ToSql<Timestamptz, Sqlite> for DateTime<TZ>
chrono
only.sourceimpl ToSql<Timestamptz, Sqlite> for str
impl ToSql<Timestamptz, Sqlite> for str
sourceimpl ToSql<Timestamptz, Sqlite> for String
impl ToSql<Timestamptz, Sqlite> for String
impl Copy for Timestamptz
impl SingleValue for Timestamptz
Auto Trait Implementations
impl RefUnwindSafe for Timestamptz
impl Send for Timestamptz
impl Sync for Timestamptz
impl Unpin for Timestamptz
impl UnwindSafe for Timestamptz
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
impl<T> IntoNotNullable for T where
T: SqlType<IsNull = NotNull>,
type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
sourceimpl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
impl<T> IntoNullable for T where
T: SqlType<IsNull = NotNull> + SingleValue,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert &self
to an expression for Diesel’s query builder. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more