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"
FromSql
impls
PgTimestamp
chrono::NaiveDateTime
withfeature = "chrono"
chrono::DateTime
withfeature = "chrono"
Trait Implementations
sourceimpl Add for Timestamptz
impl Add for Timestamptz
type Output = Timestamptz
type Output = Timestamptz
The SQL type of the result of adding Rhs
to Self
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> AsExpression<Timestamptz> for &'expr PgTimestamp
impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
type Expression = Bound<Timestamptz, Self>
type Expression = Bound<Timestamptz, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
type Expression = Bound<Timestamptz, Self>
type Expression = Bound<Timestamptz, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Timestamptz> for PgTimestamp
impl AsExpression<Timestamptz> for PgTimestamp
type Expression = Bound<Timestamptz, Self>
type Expression = Bound<Timestamptz, Self>
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, Pg> for PgTimestamp
impl FromSql<Timestamptz, Pg> for PgTimestamp
sourceimpl HasSqlType<Timestamptz> for Pg
impl HasSqlType<Timestamptz> for Pg
sourcefn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
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
const HAS_STATIC_QUERY_ID: bool
Can the SQL generated by Self
be uniquely identified by its type? Read more
sourceimpl Sub for Timestamptz
impl Sub for Timestamptz
type Output = Timestamptz
type Output = Timestamptz
The SQL type of the result of subtracting Rhs
from Self
sourceimpl ToSql<Timestamptz, Pg> for PgTimestamp
impl ToSql<Timestamptz, Pg> for PgTimestamp
impl Copy for Timestamptz
impl NotNull for Timestamptz
impl SingleValue for Timestamptz
impl SqlOrd 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNullable for T where
T: NotNull,
impl<T> IntoNullable for T where
T: NotNull,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more