apple_search_ads/objects/
reporting_data_response.rs

1// https://developer.apple.com/documentation/apple_search_ads/reportingdataresponse
2
3use serde::{Deserialize, Serialize};
4
5use crate::objects::{grand_totals_row::GrandTotalsRow, row::Row};
6
7//
8#[derive(Deserialize, Serialize, Debug, Clone)]
9pub struct ReportingDataResponse<M, I>
10where
11    M: Sized,
12    I: Sized,
13{
14    #[serde(rename = "grandTotals", skip_serializing_if = "Option::is_none")]
15    pub grand_totals: Option<GrandTotalsRow>,
16
17    pub row: Vec<Row<M, I>>,
18}
19
20impl<M, I> Default for ReportingDataResponse<M, I> {
21    fn default() -> Self {
22        Self {
23            grand_totals: None,
24            row: vec![],
25        }
26    }
27}