[−][src]Struct pgx::datum::Timestamp
Implementations
impl Timestamp
[src]
pub fn new(timestamp: PrimitiveDateTime) -> Self
[src]
Methods from Deref<Target = PrimitiveDateTime>
Trait Implementations
impl Debug for Timestamp
[src]
impl Deref for Timestamp
[src]
type Target = PrimitiveDateTime
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target
[src]
impl DerefMut for Timestamp
[src]
impl FromDatum for Timestamp
[src]
pub unsafe fn from_datum(
datum: Datum,
is_null: bool,
typoid: u32
) -> Option<Timestamp>
[src]
datum: Datum,
is_null: bool,
typoid: u32
) -> Option<Timestamp>
pub unsafe fn from_datum_in_memory_context(
mut memory_context: PgMemoryContexts,
datum: Datum,
is_null: bool,
typoid: Oid
) -> Option<Self> where
Self: Sized,
[src]
mut memory_context: PgMemoryContexts,
datum: Datum,
is_null: bool,
typoid: Oid
) -> Option<Self> where
Self: Sized,
impl IntoDatum for Timestamp
[src]
pub fn into_datum(self) -> Option<Datum>
[src]
pub fn type_oid() -> u32
[src]
pub fn array_type_oid() -> Oid
[src]
impl Serialize for Timestamp
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
[src]
impl Send for Timestamp
[src]
impl Sync for Timestamp
[src]
impl Unpin for Timestamp
[src]
impl UnwindSafe for Timestamp
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,