pub enum Precision {
Seconds = 0,
Centis = 2,
Millis = 3,
Micros = 6,
Nanos = 9,
}
Expand description
Used for specifing the precision for RFC 3339 timestamps.
Variants§
Seconds = 0
Only seconds -> 2022-05-02T15:30:20Z
Centis = 2
2 decimal places -> 2022-05-02T15:30:20.00Z
Millis = 3
3 decimal places -> 2022-05-02T15:30:20.000Z
Micros = 6
6 decimal places -> 2022-05-02T15:30:20.000000Z
Nanos = 9
9 decimal places -> 2022-05-02T15:30:20.000000000Z
Trait Implementations§
source§impl PartialEq for Precision
impl PartialEq for Precision
impl Eq for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl Freeze for Precision
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnwindSafe for Precision
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more