google-analytics-api-ga4 0.1.6

Google Analytics Data Api GA4(beta)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};
use crate::RunReportRequest;

#[derive(Default, Debug, Serialize, Deserialize)]
pub(crate) struct BatchRunReportRequestBody {
    pub requests: Vec<RunReportRequest>,
}

#[derive(Default, Debug, Serialize, Deserialize)]
pub struct RunReportResponse {
    #[serde(rename = "pivotReports")]
    reports: Option<Vec<RunReportResponse>>,
    kind: Option<String>,
}