pub struct Timestamptz;
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, '__expr2, Tz: TimeZone> AsExpression<Timestamptz> for &'__expr2 &'__expr DateTime<Tz>
impl<'__expr, '__expr2, Tz: TimeZone> AsExpression<Timestamptz> for &'__expr2 &'__expr DateTime<Tz>
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::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr NaiveDateTime
impl<'__expr, '__expr2> AsExpression<Timestamptz> for &'__expr2 &'__expr NaiveDateTime
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::Expression
fn as_expression(self) -> Self::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::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr, Tz: TimeZone> AsExpression<Timestamptz> for &'__expr DateTime<Tz>
impl<'__expr, Tz: TimeZone> AsExpression<Timestamptz> for &'__expr DateTime<Tz>
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::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr> AsExpression<Timestamptz> for &'__expr NaiveDateTime
impl<'__expr> AsExpression<Timestamptz> for &'__expr NaiveDateTime
source§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 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::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
source§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
impl AsExpression<Timestamptz> for NaiveDateTime
source§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 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::Expression
fn as_expression(self) -> Self::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 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
impl FromSql<Timestamptz, Pg> for NaiveDateTime
source§impl FromSql<Timestamptz, Pg> for PgTimestamp
impl FromSql<Timestamptz, Pg> for PgTimestamp
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 ToSql<Timestamptz, Pg> for NaiveDateTime
impl ToSql<Timestamptz, Pg> for NaiveDateTime
source§impl ToSql<Timestamptz, Pg> for PgTimestamp
impl ToSql<Timestamptz, Pg> for PgTimestamp
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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