pub struct Timestamp { /* private fields */ }
Expand description
Custom timestamp type that implements GenerateImplicitData
Implementations§
Source§impl Timestamp
impl Timestamp
Sourcepub fn from_system_time(time: SystemTime) -> Self
pub fn from_system_time(time: SystemTime) -> Self
Create a timestamp from a SystemTime
Sourcepub fn as_system_time(&self) -> SystemTime
pub fn as_system_time(&self) -> SystemTime
Get the inner SystemTime
Trait Implementations§
Source§impl GenerateImplicitData for Timestamp
impl GenerateImplicitData for Timestamp
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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