pub enum Precision {
Year,
Month,
Day,
HourAndMinute,
Second,
}
Expand description
Indicates the most precise time unit that has been specified in the accompanying Timestamp.
Variants§
Year
Year-level precision (e.g. 2020T
)
Month
Month-level precision (e.g. 2020-08T
)
Day
Day-level precision (e.g. 2020-08-01T
)
HourAndMinute
Minute-level precision (e.g. 2020-08-01T12:34Z
)
Second
Second-level precision or greater. (e.g. 2020-08-01T12:34:56Z
or 2020-08-01T12:34:56.123456789Z
)
Trait Implementations§
Source§impl Ord for Precision
impl Ord for Precision
Source§impl PartialOrd for Precision
impl PartialOrd for Precision
impl Copy 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