Enum mongodb::options::TimeseriesGranularity
source · #[non_exhaustive]
pub enum TimeseriesGranularity {
Seconds,
Minutes,
Hours,
}
Expand description
The units you’d use to describe the expected interval between subsequent measurements for a time-series.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Seconds
The expected interval between subsequent measurements is in seconds.
Minutes
The expected interval between subsequent measurements is in minutes.
Hours
The expected interval between subsequent measurements is in hours.
Trait Implementations§
source§impl Clone for TimeseriesGranularity
impl Clone for TimeseriesGranularity
source§fn clone(&self) -> TimeseriesGranularity
fn clone(&self) -> TimeseriesGranularity
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 TimeseriesGranularity
impl Debug for TimeseriesGranularity
source§impl<'de> Deserialize<'de> for TimeseriesGranularity
impl<'de> Deserialize<'de> for TimeseriesGranularity
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 PartialEq<TimeseriesGranularity> for TimeseriesGranularity
impl PartialEq<TimeseriesGranularity> for TimeseriesGranularity
source§fn eq(&self, other: &TimeseriesGranularity) -> bool
fn eq(&self, other: &TimeseriesGranularity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.