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::NaiveDateTimewith- feature = "chrono"
- chrono::DateTimewith- feature = "chrono"
- time::PrimitiveDateTimewith- feature = "time"
- time::OffsetDateTimewith- feature = "time"
§FromSql impls
- PgTimestamp
- chrono::NaiveDateTimewith- feature = "chrono"
- chrono::DateTimewith- feature = "chrono"
- time::PrimitiveDateTimewith- feature = "time"
- time::OffsetDateTimewith- feature = "time"
Trait Implementations§
Source§impl Add for Timestamptz
 
impl Add for Timestamptz
Source§impl<'__expr, '__expr2, Tz: TimeZone> AsExpression<Timestamptz> for &'__expr2 &'__expr DateTime<Tz>
Available on crate feature chrono only. 
impl<'__expr, '__expr2, Tz: TimeZone> AsExpression<Timestamptz> for &'__expr2 &'__expr DateTime<Tz>
Available on crate feature 
chrono only.Source§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 as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr NaiveDateTime
Available on crate feature chrono only. 
impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr NaiveDateTime
Available on crate feature 
chrono only.Source§type Expression = Bound<Timestamptz, &'__expr2 &'__expr NaiveDateTime>
 
type Expression = Bound<Timestamptz, &'__expr2 &'__expr NaiveDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr OffsetDateTime
Available on crate feature time only. 
impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr OffsetDateTime
Available on crate feature 
time only.Source§type Expression = Bound<Timestamptz, &'__expr2 &'__expr OffsetDateTime>
 
type Expression = Bound<Timestamptz, &'__expr2 &'__expr OffsetDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr PgTimestamp
 
impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr PgTimestamp
Source§type Expression = Bound<Timestamptz, &'__expr2 &'__expr PgTimestamp>
 
type Expression = Bound<Timestamptz, &'__expr2 &'__expr PgTimestamp>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr PrimitiveDateTime
Available on crate feature time only. 
impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr PrimitiveDateTime
Available on crate feature 
time only.Source§type Expression = Bound<Timestamptz, &'__expr2 &'__expr PrimitiveDateTime>
 
type Expression = Bound<Timestamptz, &'__expr2 &'__expr PrimitiveDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
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.Source§type Expression = Bound<Timestamptz, &'__expr DateTime<Tz>>
 
type Expression = Bound<Timestamptz, &'__expr DateTime<Tz>>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, &'__expr NaiveDateTime>
 
type Expression = Bound<Timestamptz, &'__expr NaiveDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, &'__expr OffsetDateTime>
 
type Expression = Bound<Timestamptz, &'__expr OffsetDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl<'__expr> AsExpression<Timestamptz> for &'__expr PgTimestamp
 
impl<'__expr> AsExpression<Timestamptz> for &'__expr PgTimestamp
Source§type Expression = Bound<Timestamptz, &'__expr PgTimestamp>
 
type Expression = Bound<Timestamptz, &'__expr PgTimestamp>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, &'__expr PrimitiveDateTime>
 
type Expression = Bound<Timestamptz, &'__expr PrimitiveDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, DateTime<Tz>>
 
type Expression = Bound<Timestamptz, DateTime<Tz>>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, NaiveDateTime>
 
type Expression = Bound<Timestamptz, NaiveDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, OffsetDateTime>
 
type Expression = Bound<Timestamptz, OffsetDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl AsExpression<Timestamptz> for PgTimestamp
 
impl AsExpression<Timestamptz> for PgTimestamp
Source§type Expression = Bound<Timestamptz, PgTimestamp>
 
type Expression = Bound<Timestamptz, PgTimestamp>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::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.Source§type Expression = Bound<Timestamptz, PrimitiveDateTime>
 
type Expression = Bound<Timestamptz, PrimitiveDateTime>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
 
fn as_expression(self) -> <Self as AsExpression<Timestamptz>>::Expression
Perform the conversion
Source§impl AsExpression<Timestamptz> for now
 
impl AsExpression<Timestamptz> for now
Source§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 duplicate 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
Source§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§type QueryId = Timestamptz
 
type QueryId = Timestamptz
A type which uniquely represents 
Self in a SQL query. 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
Auto Trait Implementations§
impl Freeze for Timestamptz
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> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<ST, U, DB> CompatibleType<U, DB> for ST
 
impl<ST, U, DB> CompatibleType<U, DB> for ST
Source§impl<T> IntoNotNullable for T
 
impl<T> IntoNotNullable for T
Source§type NotNullable = T
 
type NotNullable = T
The not nullable representation of this type. Read more