Struct diesel::pg::types::sql_types::Timestamptz [−][src]
pub struct Timestamptz;
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
impl AsExpression<Timestamptz> for now
[src]
impl AsExpression<Timestamptz> for now
type Expression = Coerce<now, Timestamptz>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl FromSql<Timestamptz, Pg> for NaiveDateTime
[src]
impl FromSql<Timestamptz, Pg> for NaiveDateTime
impl ToSql<Timestamptz, Pg> for NaiveDateTime
[src]
impl ToSql<Timestamptz, Pg> for NaiveDateTime
impl FromSql<Timestamptz, Pg> for DateTime<Utc>
[src]
impl FromSql<Timestamptz, Pg> for DateTime<Utc>
impl<TZ: TimeZone> ToSql<Timestamptz, Pg> for DateTime<TZ>
[src]
impl<TZ: TimeZone> ToSql<Timestamptz, Pg> for DateTime<TZ>
impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
[src]
impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
[src]
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Timestamptz> for PgTimestamp
[src]
impl AsExpression<Timestamptz> for PgTimestamp
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl ToSql<Timestamptz, Pg> for PgTimestamp
[src]
impl ToSql<Timestamptz, Pg> for PgTimestamp
impl FromSql<Timestamptz, Pg> for PgTimestamp
[src]
impl FromSql<Timestamptz, Pg> for PgTimestamp
impl QueryId for Timestamptz
[src]
impl QueryId for Timestamptz
type QueryId = Timestamptz
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>
[src]
fn query_id() -> Option<TypeId>
Returns the type id of Self::QueryId
if Self::HAS_STATIC_QUERY_ID
. Returns None
otherwise. Read more
impl NotNull for Timestamptz
[src]
impl NotNull for Timestamptz
impl SingleValue for Timestamptz
[src]
impl SingleValue for Timestamptz
impl HasSqlType<Timestamptz> for Pg
[src]
impl HasSqlType<Timestamptz> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
impl Debug for Timestamptz
[src]
impl Debug for Timestamptz
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Timestamptz
[src]
impl Clone for Timestamptz
fn clone(&self) -> Timestamptz
[src]
fn clone(&self) -> Timestamptz
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Timestamptz
[src]
impl Copy for Timestamptz
impl Default for Timestamptz
[src]
impl Default for Timestamptz
fn default() -> Timestamptz
[src]
fn default() -> Timestamptz
Returns the "default value" for a type. Read more
impl Add for Timestamptz
[src]
impl Add for Timestamptz
type Rhs = Interval
The SQL type which can be added to this one
type Output = Timestamptz
The SQL type of the result of adding Rhs
to Self
impl Sub for Timestamptz
[src]
impl Sub for Timestamptz
type Rhs = Interval
The SQL type which can be subtracted from this one
type Output = Timestamptz
The SQL type of the result of subtracting Rhs
from Self
impl<'expr> AsExpression<Timestamptz> for &'expr NaiveDateTime
[src]
impl<'expr> AsExpression<Timestamptz> for &'expr NaiveDateTime
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTime
[src]
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTime
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Timestamptz> for NaiveDateTime
[src]
impl AsExpression<Timestamptz> for NaiveDateTime
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr DateTime<Tz>
[src]
impl<'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr DateTime<Tz>
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz>
[src]
impl<'expr2, 'expr, Tz: TimeZone> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz>
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
[src]
impl<Tz: TimeZone> AsExpression<Timestamptz> for DateTime<Tz>
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
Auto Trait Implementations
impl Send for Timestamptz
impl Send for Timestamptz
impl Sync for Timestamptz
impl Sync for Timestamptz