pub struct TimeRange {
pub step: Option<StepTrue>,
pub start: Option<String>,
pub end: Option<String>,
pub timezone: Option<String>,
}
Fields§
§step: Option<StepTrue>
This is the time step for aggregations. If not provided, defaults to returning for the entire time range.
start: Option<String>
This is the start date for the time range. If not provided, defaults to the 7 days ago.
end: Option<String>
This is the end date for the time range. If not provided, defaults to now.
timezone: Option<String>
This is the timezone you want to set for the query. If not provided, defaults to UTC.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeRange
impl<'de> Deserialize<'de> for TimeRange
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
impl StructuralPartialEq for TimeRange
Auto Trait Implementations§
impl Freeze for TimeRange
impl RefUnwindSafe for TimeRange
impl Send for TimeRange
impl Sync for TimeRange
impl Unpin for TimeRange
impl UnwindSafe for TimeRange
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