/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.603.1
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetEventsOverview200ResponsePlatformsInner {
#[serde(rename = "accountId", skip_serializing_if = "Option::is_none")]
pub account_id: Option<String>,
/// Ad platform, such as `metaads` or `googleads`.
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
#[serde(rename = "accountName", skip_serializing_if = "Option::is_none")]
pub account_name: Option<String>,
/// The destination (pixel, dataset or conversion action) id.
#[serde(rename = "destinationName", skip_serializing_if = "Option::is_none")]
pub destination_name: Option<String>,
/// The destination (pixel, dataset or conversion action) id, the same as the forwarding rule's destinationId.
#[serde(rename = "destinationId", skip_serializing_if = "Option::is_none")]
pub destination_id: Option<String>,
/// Events the platform accepted today.
#[serde(rename = "sentToday", skip_serializing_if = "Option::is_none")]
pub sent_today: Option<i32>,
/// Events that failed for good today.
#[serde(rename = "failedToday", skip_serializing_if = "Option::is_none")]
pub failed_today: Option<i32>,
/// Last accepted send in the last 30 days.
#[serde(
rename = "lastSentAt",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub last_sent_at: Option<Option<String>>,
/// Name of the event in that send.
#[serde(
rename = "lastEventName",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub last_event_name: Option<Option<String>>,
/// The platform's error on the last failed send in the last 30 days.
#[serde(
rename = "lastError",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub last_error: Option<Option<String>>,
/// Where to fix a failing destination. Always `null` for now.
#[serde(
rename = "fixUrl",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub fix_url: Option<Option<String>>,
}
impl GetEventsOverview200ResponsePlatformsInner {
pub fn new() -> GetEventsOverview200ResponsePlatformsInner {
GetEventsOverview200ResponsePlatformsInner {
account_id: None,
platform: None,
account_name: None,
destination_name: None,
destination_id: None,
sent_today: None,
failed_today: None,
last_sent_at: None,
last_event_name: None,
last_error: None,
fix_url: None,
}
}
}