Enum TimestampPrecision

pub enum TimestampPrecision

Formatting precision of timestamps.

Seconds give precision of full seconds, milliseconds give thousands of a second (3 decimal digits), microseconds are millionth of a second (6 decimal digits) and nanoseconds are billionth of a second (9 decimal digits).

Variants

Seconds

Full second precision (0 decimal digits)

Millis

Millisecond precision (3 decimal digits)

Micros

Microsecond precision (6 decimal digits)

Nanos

Nanosecond precision (9 decimal digits)

Trait Implementations

impl Clone for TimestampPrecision

fn clone(&self) -> Self

impl Copy for TimestampPrecision

impl Debug for TimestampPrecision

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for TimestampPrecision

fn default() -> Self

Auto Trait Implementations

impl Freeze for TimestampPrecision

impl RefUnwindSafe for TimestampPrecision

impl Send for TimestampPrecision

impl Sync for TimestampPrecision

impl Unpin for TimestampPrecision

impl UnsafeUnpin for TimestampPrecision

impl UnwindSafe for TimestampPrecision

Blanket Implementations

impl<T> Any for TimestampPrecision where T: 'static + ?Sized,

impl<T> Borrow<T> for TimestampPrecision where T: ?Sized,

impl<T> BorrowMut<T> for TimestampPrecision where T: ?Sized,

impl<T> CloneToUninit for TimestampPrecision where T: Clone,

impl<T> From<T> for TimestampPrecision

impl<T> ToOwned for TimestampPrecision where T: Clone,

impl<T, U> Into<U> for TimestampPrecision where U: From<T>,

impl<T, U> TryFrom<U> for TimestampPrecision where U: Into<T>,

impl<T, U> TryInto<U> for TimestampPrecision where U: TryFrom<T>,