pub enum TemporalPrecision {
Year,
Month,
Day,
Hour,
Minute,
Second,
Millisecond,
}Expand description
Precision level for timestamps.
Real-world data often has varying levels of temporal precision. This enum captures how precise a timestamp is.
Variants§
Year
Year only (e.g., “2024”)
Month
Year and month (e.g., “2024-03”)
Day
Year, month, and day (e.g., “2024-03-15”)
Hour
Down to the hour
Minute
Down to the minute
Second
Down to the second
Millisecond
Sub-second precision (milliseconds)
Trait Implementations§
Source§impl Clone for TemporalPrecision
impl Clone for TemporalPrecision
Source§fn clone(&self) -> TemporalPrecision
fn clone(&self) -> TemporalPrecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemporalPrecision
impl Debug for TemporalPrecision
Source§impl Default for TemporalPrecision
impl Default for TemporalPrecision
Source§fn default() -> TemporalPrecision
fn default() -> TemporalPrecision
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemporalPrecision
impl<'de> Deserialize<'de> for TemporalPrecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TemporalPrecision
impl Hash for TemporalPrecision
Source§impl Ord for TemporalPrecision
impl Ord for TemporalPrecision
Source§fn cmp(&self, other: &TemporalPrecision) -> Ordering
fn cmp(&self, other: &TemporalPrecision) -> Ordering
1.21.0 · 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 TemporalPrecision
impl PartialEq for TemporalPrecision
Source§impl PartialOrd for TemporalPrecision
impl PartialOrd for TemporalPrecision
Source§impl Serialize for TemporalPrecision
impl Serialize for TemporalPrecision
impl Copy for TemporalPrecision
impl Eq for TemporalPrecision
impl StructuralPartialEq for TemporalPrecision
Auto Trait Implementations§
impl Freeze for TemporalPrecision
impl RefUnwindSafe for TemporalPrecision
impl Send for TemporalPrecision
impl Sync for TemporalPrecision
impl Unpin for TemporalPrecision
impl UnwindSafe for TemporalPrecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.