Enum TimestampPrecision

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)

Implementations

impl Clone for TimestampPrecision

fn clone(self: &Self) -> TimestampPrecision

impl Copy for TimestampPrecision

impl Debug for TimestampPrecision

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

impl Default for TimestampPrecision

fn default() -> Self

impl Freeze for TimestampPrecision

impl RefUnwindSafe for TimestampPrecision

impl Send for TimestampPrecision

impl Sync for TimestampPrecision

impl Unpin for TimestampPrecision

impl UnwindSafe for TimestampPrecision

impl<T> Any for TimestampPrecision

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for TimestampPrecision

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for TimestampPrecision

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for TimestampPrecision

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for TimestampPrecision

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for TimestampPrecision

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for TimestampPrecision

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for TimestampPrecision

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for TimestampPrecision

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>