Struct diesel::sql_types::Timestamptz
source · pub struct Timestamptz;
Available on crate feature
postgres_backend
only.Expand description
The “timestamp with time zone” SQL type, which PostgreSQL abbreviates
to timestamptz
.
ToSql
impls
PgTimestamp
chrono::NaiveDateTime
withfeature = "chrono"
chrono::DateTime
withfeature = "chrono"
time::PrimitiveDateTime
withfeature = "time"
time::OffsetDateTime
withfeature = "time"
FromSql
impls
PgTimestamp
chrono::NaiveDateTime
withfeature = "chrono"
chrono::DateTime
withfeature = "chrono"
time::PrimitiveDateTime
withfeature = "time"
time::OffsetDateTime
withfeature = "time"
Trait Implementations§
source§impl Add for Timestamptz
impl Add for Timestamptz
source§impl<'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr DateTime<Tz>
Available on crate feature chrono
only.
impl<'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr DateTime<Tz>
Available on crate feature
chrono
only.§type Expression = Bound<Timestamptz, &'expr DateTime<Tz>>
type Expression = Bound<Timestamptz, &'expr DateTime<Tz>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Timestamptz> for &'expr NaiveDateTime
Available on crate feature chrono
only.
impl<'expr> AsExpression<Timestamptz> for &'expr NaiveDateTime
Available on crate feature
chrono
only.§type Expression = Bound<Timestamptz, &'expr NaiveDateTime>
type Expression = Bound<Timestamptz, &'expr NaiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Timestamptz> for &'expr OffsetDateTime
Available on crate feature time
only.
impl<'expr> AsExpression<Timestamptz> for &'expr OffsetDateTime
Available on crate feature
time
only.§type Expression = Bound<Timestamptz, &'expr OffsetDateTime>
type Expression = Bound<Timestamptz, &'expr OffsetDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
§type Expression = Bound<Timestamptz, &'expr PgTimestamp>
type Expression = Bound<Timestamptz, &'expr PgTimestamp>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Timestamptz> for &'expr PrimitiveDateTime
Available on crate feature time
only.
impl<'expr> AsExpression<Timestamptz> for &'expr PrimitiveDateTime
Available on crate feature
time
only.§type Expression = Bound<Timestamptz, &'expr PrimitiveDateTime>
type Expression = Bound<Timestamptz, &'expr PrimitiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz>
Available on crate feature chrono
only.
impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz>
Available on crate feature
chrono
only.§type Expression = Bound<Timestamptz, &'expr2 &'expr DateTime<Tz>>
type Expression = Bound<Timestamptz, &'expr2 &'expr DateTime<Tz>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTime
Available on crate feature chrono
only.
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTime
Available on crate feature
chrono
only.§type Expression = Bound<Timestamptz, &'expr2 &'expr NaiveDateTime>
type Expression = Bound<Timestamptz, &'expr2 &'expr NaiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr OffsetDateTime
Available on crate feature time
only.
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr OffsetDateTime
Available on crate feature
time
only.§type Expression = Bound<Timestamptz, &'expr2 &'expr OffsetDateTime>
type Expression = Bound<Timestamptz, &'expr2 &'expr OffsetDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
§type Expression = Bound<Timestamptz, &'expr2 &'expr PgTimestamp>
type Expression = Bound<Timestamptz, &'expr2 &'expr PgTimestamp>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PrimitiveDateTime
Available on crate feature time
only.
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PrimitiveDateTime
Available on crate feature
time
only.§type Expression = Bound<Timestamptz, &'expr2 &'expr PrimitiveDateTime>
type Expression = Bound<Timestamptz, &'expr2 &'expr PrimitiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
Available on crate feature chrono
only.
impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
Available on crate feature
chrono
only.§type Expression = Bound<Timestamptz, DateTime<Tz>>
type Expression = Bound<Timestamptz, DateTime<Tz>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Timestamptz> for NaiveDateTime
Available on crate feature chrono
only.
impl AsExpression<Timestamptz> for NaiveDateTime
Available on crate feature
chrono
only.§type Expression = Bound<Timestamptz, NaiveDateTime>
type Expression = Bound<Timestamptz, NaiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Timestamptz> for OffsetDateTime
Available on crate feature time
only.
impl AsExpression<Timestamptz> for OffsetDateTime
Available on crate feature
time
only.§type Expression = Bound<Timestamptz, OffsetDateTime>
type Expression = Bound<Timestamptz, OffsetDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Timestamptz> for PgTimestamp
impl AsExpression<Timestamptz> for PgTimestamp
§type Expression = Bound<Timestamptz, PgTimestamp>
type Expression = Bound<Timestamptz, PgTimestamp>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Timestamptz> for PrimitiveDateTime
Available on crate feature time
only.
impl AsExpression<Timestamptz> for PrimitiveDateTime
Available on crate feature
time
only.§type Expression = Bound<Timestamptz, PrimitiveDateTime>
type Expression = Bound<Timestamptz, PrimitiveDateTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Timestamptz> for now
Available on crate feature postgres
only.
impl AsExpression<Timestamptz> for now
Available on crate feature
postgres
only.§type Expression = Coerce<now, Timestamptz>
type Expression = Coerce<now, Timestamptz>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl Clone for Timestamptz
impl Clone for Timestamptz
source§fn clone(&self) -> Timestamptz
fn clone(&self) -> Timestamptz
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Timestamptz
impl Debug for Timestamptz
source§impl Default for Timestamptz
impl Default for Timestamptz
source§fn default() -> Timestamptz
fn default() -> Timestamptz
Returns the “default value” for a type. Read more
source§impl FromSql<Timestamptz, Pg> for NaiveDateTime
Available on crate feature chrono
only.
impl FromSql<Timestamptz, Pg> for NaiveDateTime
Available on crate feature
chrono
only.source§impl FromSql<Timestamptz, Pg> for OffsetDateTime
Available on crate feature time
only.
impl FromSql<Timestamptz, Pg> for OffsetDateTime
Available on crate feature
time
only.source§impl FromSql<Timestamptz, Pg> for PgTimestamp
impl FromSql<Timestamptz, Pg> for PgTimestamp
source§impl FromSql<Timestamptz, Pg> for PrimitiveDateTime
Available on crate feature time
only.
impl FromSql<Timestamptz, Pg> for PrimitiveDateTime
Available on crate feature
time
only.source§impl HasSqlType<Timestamptz> for Pg
impl HasSqlType<Timestamptz> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl QueryId for Timestamptz
impl QueryId for Timestamptz
§type QueryId = Timestamptz
type QueryId = Timestamptz
A type which uniquely represents
Self
in a SQL query. Read moresource§const 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 moresource§impl Sub for Timestamptz
impl Sub for Timestamptz
source§impl<TZ: TimeZone> ToSql<Timestamptz, Pg> for DateTime<TZ>
Available on crate feature chrono
only.
impl<TZ: TimeZone> ToSql<Timestamptz, Pg> for DateTime<TZ>
Available on crate feature
chrono
only.source§impl ToSql<Timestamptz, Pg> for NaiveDateTime
Available on crate feature chrono
only.
impl ToSql<Timestamptz, Pg> for NaiveDateTime
Available on crate feature
chrono
only.source§impl ToSql<Timestamptz, Pg> for OffsetDateTime
Available on crate feature time
only.
impl ToSql<Timestamptz, Pg> for OffsetDateTime
Available on crate feature
time
only.source§impl ToSql<Timestamptz, Pg> for PgTimestamp
impl ToSql<Timestamptz, Pg> for PgTimestamp
source§impl ToSql<Timestamptz, Pg> for PrimitiveDateTime
Available on crate feature time
only.
impl ToSql<Timestamptz, Pg> for PrimitiveDateTime
Available on crate feature
time
only.impl Copy for Timestamptz
impl SingleValue for Timestamptz
impl SqlOrd for Timestamptz
Available on crate feature
postgres
only.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§
source§impl<T> IntoNotNullable for Twhere
T: SqlType<IsNull = NotNull>,
impl<T> IntoNotNullable for Twhere T: SqlType<IsNull = NotNull>,
§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more
source§impl<T> IntoNullable for Twhere
T: SqlType<IsNull = NotNull> + SingleValue,
impl<T> IntoNullable for Twhere T: SqlType<IsNull = NotNull> + SingleValue,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn 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 moresource§fn 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