pub struct MetricsQuery {
pub project_ids: Option<Vec<String>>,
pub days: u32,
pub data_source: MetricsDataSource,
pub v4_cutover_date: String,
}Expand description
Request body for all metrics queries.
Fields§
§project_ids: Option<Vec<String>>Project IDs to filter on (defaults to all configured projects).
days: u32Number of days to look back (defaults to 30).
data_source: MetricsDataSourceWhich data source to query.
v4_cutover_date: StringCutover date for v4 migration (ISO date string, e.g. “2026-09-01”).
Only used when data_source is auto.
Trait Implementations§
Source§impl Clone for MetricsQuery
impl Clone for MetricsQuery
Source§fn clone(&self) -> MetricsQuery
fn clone(&self) -> MetricsQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricsQuery
impl Debug for MetricsQuery
Source§impl Default for MetricsQuery
impl Default for MetricsQuery
Source§impl<'de> Deserialize<'de> for MetricsQuery
impl<'de> Deserialize<'de> for MetricsQuery
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
Auto Trait Implementations§
impl Freeze for MetricsQuery
impl RefUnwindSafe for MetricsQuery
impl Send for MetricsQuery
impl Sync for MetricsQuery
impl Unpin for MetricsQuery
impl UnsafeUnpin for MetricsQuery
impl UnwindSafe for MetricsQuery
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