pub struct Timestamp { /* private fields */ }
Implementations
sourceimpl Timestamp
impl Timestamp
pub fn new(timestamp: i64, precision: impl Into<TimestampPrecision>) -> Self
pub fn now() -> Self
pub fn as_raw_timestamp(&self) -> i64
pub fn to_std_time(&self) -> SystemTime
pub fn to_naive_datetime(&self) -> NaiveDateTime
Trait Implementations
sourceimpl IntoBindParam for &Timestamp
impl IntoBindParam for &Timestamp
fn into_bind_param(self) -> BindParam
sourceimpl IntoBindParam for Timestamp
impl IntoBindParam for Timestamp
fn into_bind_param(self) -> BindParam
impl Eq for Timestamp
impl StructuralEq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more