[−]Enum amadeus::source::postgres::_internal::types::Timestamp
A wrapper that can be used to represent infinity with Type::Timestamp
and Type::Timestamptz
types.
Variants
Represents infinity
, a timestamp that is later than all other timestamps.
Represents -infinity
, a timestamp that is earlier than all other timestamps.
The wrapped timestamp.
Trait Implementations
impl<T> FromSql for Timestamp<T> where
T: FromSql,
T: FromSql,
fn from_sql(
ty: &Type,
raw: &[u8]
) -> Result<Timestamp<T>, Box<dyn Error + 'static + Send + Sync>>
ty: &Type,
raw: &[u8]
) -> Result<Timestamp<T>, Box<dyn Error + 'static + Send + Sync>>
fn accepts(ty: &Type) -> bool
fn from_sql_null(
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
ty: &Type
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
fn from_sql_nullable(
ty: &Type,
raw: Option<&[u8]>
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
ty: &Type,
raw: Option<&[u8]>
) -> Result<Self, Box<dyn Error + 'static + Send + Sync>>
impl<T> Clone for Timestamp<T> where
T: Clone,
T: Clone,
fn clone(&self) -> Timestamp<T>
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> ToSql for Timestamp<T> where
T: ToSql,
T: ToSql,
fn to_sql(
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
fn accepts(ty: &Type) -> bool
fn to_sql_checked(
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
&self,
ty: &Type,
out: &mut Vec<u8>
) -> Result<IsNull, Box<dyn Error + 'static + Send + Sync>>
impl<T> Debug for Timestamp<T> where
T: Debug,
T: Debug,
impl<T> Copy for Timestamp<T> where
T: Copy,
T: Copy,
impl<T> PartialEq<Timestamp<T>> for Timestamp<T> where
T: PartialEq<T>,
T: PartialEq<T>,
Auto Trait Implementations
impl<T> Send for Timestamp<T> where
T: Send,
T: Send,
impl<T> Sync for Timestamp<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Timestamp<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Timestamp<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Timestamp<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<A, B> Downcast<A> for B where
A: DowncastImpl<B>,
[src]
A: DowncastImpl<B>,
fn downcast(self) -> Result<A, DowncastError>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> IntersectPlusUnionIsPlus for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Type for T
[src]
const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.
fn meta(&self) -> <T as Type>::Meta
[src]
fn data(&self) -> *const ()
[src]
fn data_mut(&mut self) -> *mut ()
[src]
unsafe fn uninitialized_box(<T as Type>::Meta) -> Box<T>
[src]
fn meta_type(&self) -> MetaType
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
default fn meta(&self) -> <T as Type>::Meta
[src]
default fn data(&self) -> *const ()
[src]
default fn data_mut(&mut self) -> *mut ()
[src]
unsafe default fn uninitialized_box(t: <T as Type>::Meta) -> Box<T>
[src]
const METATYPE: MetaType
[src]
type Meta: 'static
fn meta_type(&self) -> MetaType
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,