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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more