pub enum Precision {
Seconds,
Centis,
Millis,
Micros,
Nanos,
}Expand description
Used for specifing the precision for RFC3339 timestamps.
Variants
Seconds
Only seconds -> 2022-05-02T15:30:20Z
Centis
2 decimal places -> 2022-05-02T15:30:20.00Z
Millis
3 decimal places -> 2022-05-02T15:30:20.000Z
Micros
6 decimal places -> 2022-05-02T15:30:20.000000Z
Nanos
9 decimal places -> 2022-05-02T15:30:20.000000000Z
Trait Implementations
sourceimpl PartialEq<Precision> for Precision
impl PartialEq<Precision> for Precision
impl Eq for Precision
impl StructuralEq for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnwindSafe for Precision
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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