Struct dittolive_ditto::store::timeseries::DittoTimestamp
source · [−]Expand description
Timestamp key for an Event in a Timeseries.
Fields
epoch_sec: u64
Time reference for the timestamp.
nanos: u32
Offset of the timestamp in nanoseconds.
Implementations
sourceimpl DittoTimestamp
impl DittoTimestamp
sourcepub fn epoch_bytes(&self) -> [u8; 8]
pub fn epoch_bytes(&self) -> [u8; 8]
Return the epoch bytes in big endian.
sourcepub fn nanoseconds(&self) -> u32
pub fn nanoseconds(&self) -> u32
Return the timestamp offset in nanoseconds.
Trait Implementations
sourceimpl Debug for DittoTimestamp
impl Debug for DittoTimestamp
sourceimpl From<&DateTime<Utc>> for DittoTimestamp
impl From<&DateTime<Utc>> for DittoTimestamp
sourcefn from(datetime: &DateTime<Utc>) -> DittoTimestamp
fn from(datetime: &DateTime<Utc>) -> DittoTimestamp
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DittoTimestamp
impl Send for DittoTimestamp
impl Sync for DittoTimestamp
impl Unpin for DittoTimestamp
impl UnwindSafe for DittoTimestamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
impl<T> CompatExt for T
impl<T> CompatExt for T
fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Applies the [
Compat
] adapter by shared reference. Read morefn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [
Compat
] adapter by mutable reference. Read more