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
PgTimestampchrono::NaiveDateTimewithfeature = "chrono"chrono::DateTimewithfeature = "chrono"
FromSql impls
PgTimestampchrono::NaiveDateTimewithfeature = "chrono"chrono::DateTimewithfeature = "chrono"
Trait Implementations
impl AsExpression<Timestamptz> for now[src]
impl AsExpression<Timestamptz> for nowtype Expression = Coerce<now, Timestamptz>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl FromSql<Timestamptz, Pg> for NaiveDateTime[src]
impl FromSql<Timestamptz, Pg> for NaiveDateTimeimpl ToSql<Timestamptz, Pg> for NaiveDateTime[src]
impl ToSql<Timestamptz, Pg> for NaiveDateTimeimpl 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 PgTimestamptype Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp[src]
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamptype Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Timestamptz> for PgTimestamp[src]
impl AsExpression<Timestamptz> for PgTimestamptype Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl ToSql<Timestamptz, Pg> for PgTimestamp[src]
impl ToSql<Timestamptz, Pg> for PgTimestampimpl FromSql<Timestamptz, Pg> for PgTimestamp[src]
impl FromSql<Timestamptz, Pg> for PgTimestampimpl QueryId for Timestamptz[src]
impl QueryId for Timestamptztype 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 Timestamptzimpl SingleValue for Timestamptz[src]
impl SingleValue for Timestamptzimpl HasSqlType<Timestamptz> for Pg[src]
impl HasSqlType<Timestamptz> for Pgfn metadata(_: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl Debug for Timestamptz[src]
impl Debug for Timestamptzfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Timestamptz[src]
impl Clone for Timestamptzfn clone(&self) -> Timestamptz[src]
fn clone(&self) -> TimestamptzReturns 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 Timestamptzimpl Default for Timestamptz[src]
impl Default for Timestamptzfn default() -> Timestamptz[src]
fn default() -> TimestamptzReturns the "default value" for a type. Read more
impl Add for Timestamptz[src]
impl Add for Timestamptztype 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 Timestamptztype 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 NaiveDateTimetype Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTime[src]
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTimetype Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Timestamptz> for NaiveDateTime[src]
impl AsExpression<Timestamptz> for NaiveDateTimetype Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform 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::ExpressionPerform 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::ExpressionPerform 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::ExpressionPerform the conversion
Auto Trait Implementations
impl Send for Timestamptz
impl Send for Timestamptzimpl Sync for Timestamptz
impl Sync for Timestamptz