use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LinkedInAggregateAnalyticsDailyResponse {
#[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
pub account_id: Option<String>,
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
#[serde(rename = "accountType", skip_serializing_if = "Option::is_none")]
pub account_type: Option<String>,
#[serde(rename = "username", skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
#[serde(rename = "aggregation", skip_serializing_if = "Option::is_none")]
pub aggregation: Option<Aggregation>,
#[serde(rename = "dateRange", skip_serializing_if = "Option::is_none")]
pub date_range: Option<Box<models::LinkedInAggregateAnalyticsTotalResponseDateRange>>,
#[serde(rename = "analytics", skip_serializing_if = "Option::is_none")]
pub analytics: Option<Box<models::LinkedInAggregateAnalyticsDailyResponseAnalytics>>,
#[serde(rename = "skippedMetrics", skip_serializing_if = "Option::is_none")]
pub skipped_metrics: Option<Vec<String>>,
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
pub note: Option<String>,
#[serde(rename = "lastUpdated", skip_serializing_if = "Option::is_none")]
pub last_updated: Option<String>,
}
impl LinkedInAggregateAnalyticsDailyResponse {
pub fn new() -> LinkedInAggregateAnalyticsDailyResponse {
LinkedInAggregateAnalyticsDailyResponse {
account_id: None,
platform: None,
account_type: None,
username: None,
aggregation: None,
date_range: None,
analytics: None,
skipped_metrics: None,
note: None,
last_updated: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Aggregation {
#[serde(rename = "DAILY")]
Daily,
}
impl Default for Aggregation {
fn default() -> Aggregation {
Self::Daily
}
}