[][src]Enum 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<T> Copy for Date<T> where
    T: Copy
[src]

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

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

Performs copy-assignment from source. Read more

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

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

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

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

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

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

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

impl<T> Debug for Date<T> where
    T: Debug
[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, U> Into for T where
    U: From<T>, 
[src]

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

type Owned = T

impl<T> From for T[src]

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> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

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

impl<T> Same for T

type Output = T

Should always be Self