Enum tokio_postgres::types::Date [−][src]
pub enum Date<T> {
PosInfinity,
NegInfinity,
Value(T),
}A wrapper that can be used to represent infinity with Type::Date types.
Variants
Represents infinity, a date that is later than all other dates.
Represents -infinity, a date that is earlier than all other dates.
The wrapped date.
Trait Implementations
impl<'a, T> FromSql<'a> for Date<T> where
T: FromSql<'a>, [src]
impl<'a, T> FromSql<'a> for Date<T> where
T: FromSql<'a>, [src]pub fn from_sql(
ty: &Type,
raw: &'a [u8]
) -> Result<Date<T>, Box<dyn Error + 'static + Sync + Send, Global>>[src]
ty: &Type,
raw: &'a [u8]
) -> Result<Date<T>, Box<dyn Error + 'static + Sync + Send, Global>>
pub fn accepts(ty: &Type) -> bool[src]
pub fn from_sql_null(
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Sync + Send, Global>>[src]
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Sync + Send, Global>>
pub fn from_sql_nullable(
ty: &Type,
raw: Option<&'a [u8]>
) -> Result<Self, Box<dyn Error + 'static + Sync + Send, Global>>[src]
ty: &Type,
raw: Option<&'a [u8]>
) -> Result<Self, Box<dyn Error + 'static + Sync + Send, Global>>
impl<T> StructuralPartialEq for Date<T>[src]
impl<T> StructuralPartialEq for Date<T>[src]Auto Trait Implementations
impl<T> RefUnwindSafe for Date<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Date<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for Date<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Date<T> where
T: UnwindSafe, Blanket Implementations
impl<T> BorrowToSql for T where
T: ToSql, [src]
impl<T> BorrowToSql for T where
T: ToSql, [src]pub fn borrow_to_sql(&self) -> &dyn ToSql[src]
impl<T> FromSqlOwned for T where
T: for<'a> FromSql<'a>, [src]
impl<T> FromSqlOwned for T where
T: for<'a> FromSql<'a>, [src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,