[]Enum c3p0_pg::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> ToSql for Timestamp<T> where
    T: ToSql

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

impl<T> PartialEq<Timestamp<T>> for Timestamp<T> where
    T: PartialEq<T>, 

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

fn from_sql_null(
    ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>

Creates a new value of this type from a NULL SQL value. Read more

fn from_sql_nullable(
    ty: &Type,
    raw: Option<&[u8]>
) -> Result<Self, Box<dyn Error + 'static + Sync + Send>>

A convenience function that delegates to from_sql and from_sql_null depending on the value of raw. Read more

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self