[−][src]Enum postgres::types::Timestamp
A wrapper that can be used to represent infinity with Type::Timestamp
and Type::Timestamptz
types.
Variants
Represents infinity
, a timestamp that is later than all other timestamps.
Represents -infinity
, a timestamp that is earlier than all other timestamps.
The wrapped timestamp.
Trait Implementations
impl<T> Clone for Timestamp<T> where
T: Clone,
[src]
T: Clone,
impl<T> Copy for Timestamp<T> where
T: Copy,
[src]
T: Copy,
impl<T> Debug for Timestamp<T> where
T: Debug,
[src]
T: Debug,
impl<'a, T> FromSql<'a> for Timestamp<T> where
T: FromSql<'a>,
[src]
T: FromSql<'a>,
fn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<Timestamp<T>, Box<dyn Error + 'static + Sync + Send>>
[src]
ty: &Type,
raw: &'a [u8]
) -> Result<Timestamp<T>, Box<dyn Error + 'static + Sync + Send>>
fn accepts(ty: &Type) -> bool
[src]
fn from_sql_null(
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>
[src]
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>
fn from_sql_nullable(
ty: &Type,
raw: Option<&'a [u8]>
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>
[src]
ty: &Type,
raw: Option<&'a [u8]>
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>
impl<T> PartialEq<Timestamp<T>> for Timestamp<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
impl<T> StructuralPartialEq for Timestamp<T>
[src]
impl<T> ToSql for Timestamp<T> where
T: ToSql,
[src]
T: ToSql,
Auto Trait Implementations
impl<T> RefUnwindSafe for Timestamp<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Timestamp<T> where
T: Send,
T: Send,
impl<T> Sync for Timestamp<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Timestamp<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Timestamp<T> where
T: UnwindSafe,
T: UnwindSafe,
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> FromSqlOwned for T where
T: for<'a> FromSql<'a>,
[src]
T: for<'a> FromSql<'a>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,