Struct block_tools::db::use_diesel::pg::types::sql_types::Timestamptz [−][src]
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 Add for Timestamptz
[src]
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<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr PgTimestamp
[src]
type Expression = Bound<Timestamptz, &'expr2 &'expr PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <&'expr2 &'expr PgTimestamp as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <&'expr2 &'expr PgTimestamp as AsExpression<Timestamptz>>::Expression
impl<Tz> AsExpression<Timestamptz> for DateTime<Tz> where
Tz: TimeZone,
[src]
Tz: TimeZone,
type Expression = Bound<Timestamptz, DateTime<Tz>>
The expression being returned
pub fn as_expression(
self
) -> <DateTime<Tz> as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <DateTime<Tz> as AsExpression<Timestamptz>>::Expression
impl AsExpression<Timestamptz> for NaiveDateTime
[src]
type Expression = Bound<Timestamptz, NaiveDateTime>
The expression being returned
pub fn as_expression(
self
) -> <NaiveDateTime as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <NaiveDateTime as AsExpression<Timestamptz>>::Expression
impl<'expr2, 'expr> AsExpression<Timestamptz> for &'expr2 &'expr NaiveDateTime
[src]
type Expression = Bound<Timestamptz, &'expr2 &'expr NaiveDateTime>
The expression being returned
pub fn as_expression(
self
) -> <&'expr2 &'expr NaiveDateTime as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <&'expr2 &'expr NaiveDateTime as AsExpression<Timestamptz>>::Expression
impl<'expr2, 'expr, Tz> AsExpression<Timestamptz> for &'expr2 &'expr DateTime<Tz> where
Tz: TimeZone,
[src]
Tz: TimeZone,
type Expression = Bound<Timestamptz, &'expr2 &'expr DateTime<Tz>>
The expression being returned
pub fn as_expression(
self
) -> <&'expr2 &'expr DateTime<Tz> as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <&'expr2 &'expr DateTime<Tz> as AsExpression<Timestamptz>>::Expression
impl<'expr, Tz> AsExpression<Timestamptz> for &'expr DateTime<Tz> where
Tz: TimeZone,
[src]
Tz: TimeZone,
type Expression = Bound<Timestamptz, &'expr DateTime<Tz>>
The expression being returned
pub fn as_expression(
self
) -> <&'expr DateTime<Tz> as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <&'expr DateTime<Tz> as AsExpression<Timestamptz>>::Expression
impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
[src]
type Expression = Bound<Timestamptz, &'expr PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgTimestamp as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <&'expr PgTimestamp as AsExpression<Timestamptz>>::Expression
impl AsExpression<Timestamptz> for now
[src]
type Expression = Coerce<now, Timestamptz>
The expression being returned
pub fn as_expression(self) -> <now as AsExpression<Timestamptz>>::Expression
[src]
impl<'expr> AsExpression<Timestamptz> for &'expr NaiveDateTime
[src]
type Expression = Bound<Timestamptz, &'expr NaiveDateTime>
The expression being returned
pub fn as_expression(
self
) -> <&'expr NaiveDateTime as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <&'expr NaiveDateTime as AsExpression<Timestamptz>>::Expression
impl AsExpression<Timestamptz> for PgTimestamp
[src]
type Expression = Bound<Timestamptz, PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <PgTimestamp as AsExpression<Timestamptz>>::Expression
[src]
self
) -> <PgTimestamp as AsExpression<Timestamptz>>::Expression
impl Clone for Timestamptz
[src]
pub fn clone(&self) -> Timestamptz
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Timestamptz
[src]
impl Debug for Timestamptz
[src]
impl Default for Timestamptz
[src]
pub fn default() -> Timestamptz
[src]
impl FromSql<Timestamptz, Pg> for NaiveDateTime
[src]
pub fn from_sql(
bytes: Option<&[u8]>
) -> Result<NaiveDateTime, Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&[u8]>
) -> Result<NaiveDateTime, Box<dyn Error + 'static + Send + Sync, Global>>
impl FromSql<Timestamptz, Pg> for PgTimestamp
[src]
pub fn from_sql(
bytes: Option<&[u8]>
) -> Result<PgTimestamp, Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&[u8]>
) -> Result<PgTimestamp, Box<dyn Error + 'static + Send + Sync, Global>>
impl FromSql<Timestamptz, Pg> for DateTime<Utc>
[src]
pub fn from_sql(
bytes: Option<&[u8]>
) -> Result<DateTime<Utc>, Box<dyn Error + 'static + Send + Sync, Global>>
[src]
bytes: Option<&[u8]>
) -> Result<DateTime<Utc>, Box<dyn Error + 'static + Send + Sync, Global>>
impl HasSqlType<Timestamptz> for Pg
[src]
pub fn metadata(&PgMetadataLookup) -> PgTypeMetadata
[src]
impl NotNull for Timestamptz
[src]
impl QueryId for Timestamptz
[src]
type QueryId = Timestamptz
A type which uniquely represents Self
in a SQL query. Read more
pub const HAS_STATIC_QUERY_ID: bool
[src]
pub fn query_id() -> Option<TypeId>
[src]
impl SingleValue for Timestamptz
[src]
impl SqlOrd for Timestamptz
[src]
impl Sub for Timestamptz
[src]
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 ToSql<Timestamptz, Pg> for NaiveDateTime
[src]
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, Pg>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, Pg>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl<TZ> ToSql<Timestamptz, Pg> for DateTime<TZ> where
TZ: TimeZone,
[src]
TZ: TimeZone,
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, Pg>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, Pg>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl ToSql<Timestamptz, Pg> for PgTimestamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for Timestamptz
[src]
impl Send for Timestamptz
[src]
impl Sync for Timestamptz
[src]
impl Unpin for Timestamptz
[src]
impl UnwindSafe for Timestamptz
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoNullable for T where
T: NotNull,
[src]
T: NotNull,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,