[−][src]Struct diesel::pg::data_types::PgTimestamp
Timestamps are represented in Postgres as a 64 bit signed integer representing the number of microseconds since January 1st 2000. This struct is a dumb wrapper type, meant only to indicate the integer's meaning.
Trait Implementations
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Nullable<Timestamp>> for PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamp>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr> AsExpression<Nullable<Timestamptz>> for &'expr PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Nullable<Timestamptz>> for PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamptz>, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr> AsExpression<Timestamp> for &'expr PgTimestamp
[src]
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Timestamp> for PgTimestamp
[src]
type Expression = Bound<Timestamp, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<'expr> AsExpression<Timestamptz> for &'expr PgTimestamp
[src]
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl AsExpression<Timestamptz> for PgTimestamp
[src]
type Expression = Bound<Timestamptz, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl Clone for PgTimestamp
[src]
fn clone(&self) -> PgTimestamp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PgTimestamp
[src]
impl Debug for PgTimestamp
[src]
impl Eq for PgTimestamp
[src]
impl FromSql<Timestamp, Pg> for PgTimestamp
[src]
impl FromSql<Timestamptz, Pg> for PgTimestamp
[src]
impl<__ST, __DB> FromSqlRow<__ST, __DB> for PgTimestamp where
__DB: Backend,
Self: FromSql<__ST, __DB>,
[src]
__DB: Backend,
Self: FromSql<__ST, __DB>,
fn build_from_row<R: Row<__DB>>(row: &mut R) -> Result<Self>
[src]
const FIELDS_NEEDED: usize
[src]
impl Ord for PgTimestamp
[src]
fn cmp(&self, other: &PgTimestamp) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PgTimestamp> for PgTimestamp
[src]
fn eq(&self, other: &PgTimestamp) -> bool
[src]
fn ne(&self, other: &PgTimestamp) -> bool
[src]
impl PartialOrd<PgTimestamp> for PgTimestamp
[src]
fn partial_cmp(&self, other: &PgTimestamp) -> Option<Ordering>
[src]
fn lt(&self, other: &PgTimestamp) -> bool
[src]
fn le(&self, other: &PgTimestamp) -> bool
[src]
fn gt(&self, other: &PgTimestamp) -> bool
[src]
fn ge(&self, other: &PgTimestamp) -> bool
[src]
impl<__ST, __DB> Queryable<__ST, __DB> for PgTimestamp where
__DB: Backend,
Self: FromSql<__ST, __DB>,
[src]
__DB: Backend,
Self: FromSql<__ST, __DB>,
type Row = Self
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self
[src]
impl StructuralEq for PgTimestamp
[src]
impl StructuralPartialEq for PgTimestamp
[src]
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for PgTimestamp where
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
[src]
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
impl<__DB> ToSql<Nullable<Timestamptz>, __DB> for PgTimestamp where
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
[src]
__DB: Backend,
Self: ToSql<Timestamptz, __DB>,
impl ToSql<Timestamp, Pg> for PgTimestamp
[src]
impl ToSql<Timestamptz, Pg> for PgTimestamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for PgTimestamp
impl Send for PgTimestamp
impl Sync for PgTimestamp
impl Unpin for PgTimestamp
impl UnwindSafe for PgTimestamp
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,
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> IntoSql for T
[src]
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
[src]
Self: AsExpression<T> + Sized,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> 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.
fn to_owned(&self) -> T
[src]
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.
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>,