use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetAdComments200ResponseMeta {
#[serde(rename = "platform")]
pub platform: Platform,
#[serde(rename = "adId")]
pub ad_id: String,
#[serde(rename = "platformAdId")]
pub platform_ad_id: String,
#[serde(rename = "effectiveStoryId")]
pub effective_story_id: String,
#[serde(rename = "accountId")]
pub account_id: String,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
}
impl GetAdComments200ResponseMeta {
pub fn new(
platform: Platform,
ad_id: String,
platform_ad_id: String,
effective_story_id: String,
account_id: String,
last_updated: String,
) -> GetAdComments200ResponseMeta {
GetAdComments200ResponseMeta {
platform,
ad_id,
platform_ad_id,
effective_story_id,
account_id,
last_updated,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Platform {
#[serde(rename = "facebook")]
Facebook,
#[serde(rename = "instagram")]
Instagram,
}
impl Default for Platform {
fn default() -> Platform {
Self::Facebook
}
}