pub struct InsightsQuery {
pub date_range: Option<DateRange>,
pub metrics: Vec<String>,
pub breakdowns: Vec<String>,
pub level: Option<InsightsLevel>,
pub entity_ids: Vec<String>,
pub limit: Option<u32>,
}Expand description
Query parameters for fetching insights.
Fields§
§date_range: Option<DateRange>Optional date range to constrain the report.
metrics: Vec<String>List of metric names to retrieve (e.g. “impressions”, “clicks”).
breakdowns: Vec<String>Breakdown dimensions (e.g. “age”, “gender”).
level: Option<InsightsLevel>The entity level at which to aggregate data.
entity_ids: Vec<String>IDs of entities to include in the report.
limit: Option<u32>Maximum number of rows to return.
Trait Implementations§
Source§impl Clone for InsightsQuery
impl Clone for InsightsQuery
Source§fn clone(&self) -> InsightsQuery
fn clone(&self) -> InsightsQuery
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 InsightsQuery
impl Debug for InsightsQuery
Source§impl Default for InsightsQuery
impl Default for InsightsQuery
Source§fn default() -> InsightsQuery
fn default() -> InsightsQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InsightsQuery
impl<'de> Deserialize<'de> for InsightsQuery
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 InsightsQuery
impl RefUnwindSafe for InsightsQuery
impl Send for InsightsQuery
impl Sync for InsightsQuery
impl Unpin for InsightsQuery
impl UnsafeUnpin for InsightsQuery
impl UnwindSafe for InsightsQuery
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