pub enum TimestampPrecision {
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 Clone for TimestampPrecision
impl Clone for TimestampPrecision
Source§fn clone(&self) -> TimestampPrecision
fn clone(&self) -> TimestampPrecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimestampPrecision
Source§impl Debug for TimestampPrecision
impl Debug for TimestampPrecision
Source§impl Default for TimestampPrecision
impl Default for TimestampPrecision
Source§fn default() -> TimestampPrecision
fn default() -> TimestampPrecision
Returns the “default value” for a type. Read more
impl Eq for TimestampPrecision
Source§impl Hash for TimestampPrecision
impl Hash for TimestampPrecision
Source§impl Ord for TimestampPrecision
impl Ord for TimestampPrecision
Source§fn cmp(&self, other: &TimestampPrecision) -> Ordering
fn cmp(&self, other: &TimestampPrecision) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimestampPrecision
impl PartialEq for TimestampPrecision
Source§fn eq(&self, other: &TimestampPrecision) -> bool
fn eq(&self, other: &TimestampPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TimestampPrecision
impl PartialOrd for TimestampPrecision
impl StructuralPartialEq for TimestampPrecision
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§
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