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 PartialEq<Precision> for Precision
impl PartialEq<Precision> for Precision
source§impl PartialOrd<Precision> for Precision
impl PartialOrd<Precision> for Precision
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy 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§
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