pub enum DateTimePrecision {
Seconds,
Milliseconds,
Microseconds,
Nanoseconds,
}
Expand description
Precision with which datetimes are truncated when stored in fast fields. This setting is only relevant for fast fields. In the docstore, datetimes are always saved with nanosecond precision.
Variants§
Seconds
Second precision.
Milliseconds
Millisecond precision.
Microseconds
Microsecond precision.
Nanoseconds
Nanosecond precision.
Trait Implementations§
source§impl Clone for DateTimePrecision
impl Clone for DateTimePrecision
source§fn clone(&self) -> DateTimePrecision
fn clone(&self) -> DateTimePrecision
Returns a copy 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 DateTimePrecision
impl Debug for DateTimePrecision
source§impl Default for DateTimePrecision
impl Default for DateTimePrecision
source§fn default() -> DateTimePrecision
fn default() -> DateTimePrecision
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DateTimePrecision
impl<'de> Deserialize<'de> for DateTimePrecision
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 DateTimePrecision
impl Hash for DateTimePrecision
source§impl Ord for DateTimePrecision
impl Ord for DateTimePrecision
source§fn cmp(&self, other: &DateTimePrecision) -> Ordering
fn cmp(&self, other: &DateTimePrecision) -> 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 DateTimePrecision
impl PartialEq for DateTimePrecision
source§fn eq(&self, other: &DateTimePrecision) -> bool
fn eq(&self, other: &DateTimePrecision) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DateTimePrecision
impl PartialOrd for DateTimePrecision
source§fn partial_cmp(&self, other: &DateTimePrecision) -> Option<Ordering>
fn partial_cmp(&self, other: &DateTimePrecision) -> Option<Ordering>
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 moresource§impl Serialize for DateTimePrecision
impl Serialize for DateTimePrecision
impl Copy for DateTimePrecision
impl Eq for DateTimePrecision
impl StructuralPartialEq for DateTimePrecision
Auto Trait Implementations§
impl Freeze for DateTimePrecision
impl RefUnwindSafe for DateTimePrecision
impl Send for DateTimePrecision
impl Sync for DateTimePrecision
impl Unpin for DateTimePrecision
impl UnwindSafe for DateTimePrecision
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