pub struct UnixTimestamp(/* private fields */);
Expand description
SqlTimestamp
type that can be created from number of seconds since epoch as represented by f64
value.
Implementations§
Source§impl UnixTimestamp
impl UnixTimestamp
pub fn as_naive_date_time(&self) -> NaiveDateTime
pub fn into_inner(self) -> SqlTimestamp
Trait Implementations§
Source§impl Debug for UnixTimestamp
impl Debug for UnixTimestamp
Source§impl From<NaiveDateTime> for UnixTimestamp
impl From<NaiveDateTime> for UnixTimestamp
Source§fn from(value: NaiveDateTime) -> UnixTimestamp
fn from(value: NaiveDateTime) -> UnixTimestamp
Converts to this type from the input type.
Source§impl From<UnixTimestamp> for Value
Available on crate feature chrono
only.
impl From<UnixTimestamp> for Value
Available on crate feature
chrono
only.Source§fn from(value: UnixTimestamp) -> Value
fn from(value: UnixTimestamp) -> Value
Converts to this type from the input type.
Source§impl From<f64> for UnixTimestamp
impl From<f64> for UnixTimestamp
Source§fn from(ts: f64) -> UnixTimestamp
fn from(ts: f64) -> UnixTimestamp
Converts to this type from the input type.
Source§impl<'a> OdbcType<'a> for UnixTimestamp
impl<'a> OdbcType<'a> for UnixTimestamp
fn sql_data_type() -> SqlDataType
fn c_data_type() -> SqlCDataType
fn convert(buffer: &'a [u8]) -> Self
fn column_size(&self) -> SQLULEN
fn value_ptr(&self) -> SQLPOINTER
fn null_bytes_count() -> usize
fn decimal_digits(&self) -> i16
Auto Trait Implementations§
impl Freeze for UnixTimestamp
impl RefUnwindSafe for UnixTimestamp
impl Send for UnixTimestamp
impl Sync for UnixTimestamp
impl Unpin for UnixTimestamp
impl UnwindSafe for UnixTimestamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more