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) -> TimestampPrecision

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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for TimestampPrecision

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(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<U> for TimestampPrecision where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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