Struct block_tools::db::use_diesel::data_types::PgTimestamp [−][src]
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 AsExpression<Nullable<Timestamp>> for PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamp>, PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <PgTimestamp as AsExpression<Nullable<Timestamp>>>::Expression
[src]
self
) -> <PgTimestamp as AsExpression<Nullable<Timestamp>>>::Expression
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamp>, &'expr PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgTimestamp as AsExpression<Nullable<Timestamp>>>::Expression
[src]
self
) -> <&'expr PgTimestamp as AsExpression<Nullable<Timestamp>>>::Expression
impl<'expr> AsExpression<Nullable<Timestamptz>> for &'expr PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamptz>, &'expr PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgTimestamp as AsExpression<Nullable<Timestamptz>>>::Expression
[src]
self
) -> <&'expr PgTimestamp as AsExpression<Nullable<Timestamptz>>>::Expression
impl AsExpression<Nullable<Timestamptz>> for PgTimestamp
[src]
type Expression = Bound<Nullable<Timestamptz>, PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <PgTimestamp as AsExpression<Nullable<Timestamptz>>>::Expression
[src]
self
) -> <PgTimestamp as AsExpression<Nullable<Timestamptz>>>::Expression
impl AsExpression<Timestamp> for PgTimestamp
[src]
type Expression = Bound<Timestamp, PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <PgTimestamp as AsExpression<Timestamp>>::Expression
[src]
self
) -> <PgTimestamp as AsExpression<Timestamp>>::Expression
impl<'expr> AsExpression<Timestamp> for &'expr PgTimestamp
[src]
type Expression = Bound<Timestamp, &'expr PgTimestamp>
The expression being returned
pub fn as_expression(
self
) -> <&'expr PgTimestamp as AsExpression<Timestamp>>::Expression
[src]
self
) -> <&'expr PgTimestamp as AsExpression<Timestamp>>::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 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 PgTimestamp
[src]
pub fn clone(&self) -> PgTimestamp
[src]
pub 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]
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 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<__ST, __DB> FromSqlRow<__ST, __DB> for PgTimestamp where
__DB: Backend,
PgTimestamp: FromSql<__ST, __DB>,
[src]
__DB: Backend,
PgTimestamp: FromSql<__ST, __DB>,
pub fn build_from_row<R>(
row: &mut R
) -> Result<PgTimestamp, Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<__DB>,
[src]
row: &mut R
) -> Result<PgTimestamp, Box<dyn Error + 'static + Send + Sync, Global>> where
R: Row<__DB>,
pub const FIELDS_NEEDED: usize
[src]
impl Ord for PgTimestamp
[src]
pub fn cmp(&self, other: &PgTimestamp) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PgTimestamp> for PgTimestamp
[src]
pub fn eq(&self, other: &PgTimestamp) -> bool
[src]
pub fn ne(&self, other: &PgTimestamp) -> bool
[src]
impl PartialOrd<PgTimestamp> for PgTimestamp
[src]
pub fn partial_cmp(&self, other: &PgTimestamp) -> Option<Ordering>
[src]
pub fn lt(&self, other: &PgTimestamp) -> bool
[src]
pub fn le(&self, other: &PgTimestamp) -> bool
[src]
pub fn gt(&self, other: &PgTimestamp) -> bool
[src]
pub fn ge(&self, other: &PgTimestamp) -> bool
[src]
impl<__ST, __DB> Queryable<__ST, __DB> for PgTimestamp where
__DB: Backend,
PgTimestamp: FromSql<__ST, __DB>,
[src]
__DB: Backend,
PgTimestamp: FromSql<__ST, __DB>,
type Row = PgTimestamp
The Rust type you'd like to map from. Read more
pub fn build(row: <PgTimestamp as Queryable<__ST, __DB>>::Row) -> PgTimestamp
[src]
impl StructuralEq for PgTimestamp
[src]
impl StructuralPartialEq for PgTimestamp
[src]
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for PgTimestamp where
__DB: Backend,
PgTimestamp: ToSql<Timestamp, __DB>,
[src]
__DB: Backend,
PgTimestamp: ToSql<Timestamp, __DB>,
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, __DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, __DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl<__DB> ToSql<Nullable<Timestamptz>, __DB> for PgTimestamp where
__DB: Backend,
PgTimestamp: ToSql<Timestamptz, __DB>,
[src]
__DB: Backend,
PgTimestamp: ToSql<Timestamptz, __DB>,
pub fn to_sql<W>(
&self,
out: &mut Output<'_, W, __DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
[src]
&self,
out: &mut Output<'_, W, __DB>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync, Global>> where
W: Write,
impl ToSql<Timestamp, Pg> for PgTimestamp
[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 ToSql<Timestamptz, Pg> for PgTimestamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for PgTimestamp
[src]
impl Send for PgTimestamp
[src]
impl Sync for PgTimestamp
[src]
impl Unpin for PgTimestamp
[src]
impl UnwindSafe for PgTimestamp
[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> 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>,