#[non_exhaustive]pub enum NewTimeRange {
Absolute(TimeRange),
Relative(RelativeTimeRange),
}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.
Absolute(TimeRange)
Relative(RelativeTimeRange)
Trait Implementations§
source§impl Clone for NewTimeRange
impl Clone for NewTimeRange
source§fn clone(&self) -> NewTimeRange
fn clone(&self) -> NewTimeRange
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 NewTimeRange
impl Debug for NewTimeRange
source§impl<'de> Deserialize<'de> for NewTimeRange
impl<'de> Deserialize<'de> for NewTimeRange
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 From<NewTimeRange> for TimeRange
impl From<NewTimeRange> for TimeRange
source§fn from(new_time_range: NewTimeRange) -> Self
fn from(new_time_range: NewTimeRange) -> Self
Converts to this type from the input type.
source§impl From<TimeRange> for NewTimeRange
impl From<TimeRange> for NewTimeRange
source§impl PartialEq for NewTimeRange
impl PartialEq for NewTimeRange
source§fn eq(&self, other: &NewTimeRange) -> bool
fn eq(&self, other: &NewTimeRange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for NewTimeRange
impl Serialize for NewTimeRange
impl Eq for NewTimeRange
impl StructuralPartialEq for NewTimeRange
Auto Trait Implementations§
impl Freeze for NewTimeRange
impl RefUnwindSafe for NewTimeRange
impl Send for NewTimeRange
impl Sync for NewTimeRange
impl Unpin for NewTimeRange
impl UnwindSafe for NewTimeRange
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