[][src]Enum tokio_postgres::types::Date

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

A wrapper that can be used to represent infinity with Type::Date types.

Variants

PosInfinity

Represents infinity, a date that is later than all other dates.

NegInfinity

Represents -infinity, a date that is earlier than all other dates.

Value(T)

The wrapped date.

Trait Implementations

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

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

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

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

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

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

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

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

Performs copy-assignment from source. Read more

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

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

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

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Same for T

type Output = T

Should always be Self

impl<T> Erased for T