[][src]Enum postgres_types::Timestamp

pub enum Timestamp<T> {
    PosInfinity,
    NegInfinity,
    Value(T),
}

A wrapper that can be used to represent infinity with Type::Timestamp and Type::Timestamptz types.

Variants

PosInfinity

Represents infinity, a timestamp that is later than all other timestamps.

NegInfinity

Represents -infinity, a timestamp that is earlier than all other timestamps.

Value(T)

The wrapped timestamp.

Trait Implementations

impl<T: Clone> Clone for Timestamp<T>[src]

impl<T: Copy> Copy for Timestamp<T>[src]

impl<T: Debug> Debug for Timestamp<T>[src]

impl<'a, T: FromSql<'a>> FromSql<'a> for Timestamp<T>[src]

impl<T: PartialEq> PartialEq<Timestamp<T>> for Timestamp<T>[src]

impl<T> StructuralPartialEq for Timestamp<T>[src]

impl<T: ToSql> ToSql for Timestamp<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Timestamp<T> where
    T: RefUnwindSafe

impl<T> Send for Timestamp<T> where
    T: Send

impl<T> Sync for Timestamp<T> where
    T: Sync

impl<T> Unpin for Timestamp<T> where
    T: Unpin

impl<T> UnwindSafe for Timestamp<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromSqlOwned for T where
    T: for<'a> FromSql<'a>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,