#[non_exhaustive]pub enum TimeInput {
TimeWindow(Box<Interval>),
RelativeTime(Box<RelativeTime>),
}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.
TimeWindow(Box<Interval>)
time range to fetch the data for.
RelativeTime(Box<RelativeTime>)
time range for last x units.
Trait Implementations§
impl StructuralPartialEq for TimeInput
Auto Trait Implementations§
impl Freeze for TimeInput
impl RefUnwindSafe for TimeInput
impl Send for TimeInput
impl Sync for TimeInput
impl Unpin for TimeInput
impl UnsafeUnpin for TimeInput
impl UnwindSafe for TimeInput
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