/*
* 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.226.1
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// CommentAutomationStats : Running counters for the automation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CommentAutomationStats {
/// Matched triggers that reached the audience or send stage.
#[serde(rename = "triggered", skip_serializing_if = "Option::is_none")]
pub triggered: Option<i32>,
#[serde(rename = "dmsSent", skip_serializing_if = "Option::is_none")]
pub dms_sent: Option<i32>,
#[serde(rename = "dmsFailed", skip_serializing_if = "Option::is_none")]
pub dms_failed: Option<i32>,
#[serde(rename = "uniqueContacts", skip_serializing_if = "Option::is_none")]
pub unique_contacts: Option<i32>,
/// DMs sent with a trackable (wrapped) link. CTR denominator: divide clicks by this, not dmsSent. Lags dmsSent for campaigns that predate click tracking.
#[serde(rename = "trackedSends", skip_serializing_if = "Option::is_none")]
pub tracked_sends: Option<i32>,
/// Total clicks on tracked links (bots/prefetch excluded).
#[serde(rename = "linkClicks", skip_serializing_if = "Option::is_none")]
pub link_clicks: Option<i32>,
/// Distinct people who clicked a tracked link.
#[serde(rename = "uniqueClicks", skip_serializing_if = "Option::is_none")]
pub unique_clicks: Option<i32>,
/// DMs confirmed delivered (Messenger; IG emits no delivery receipt).
#[serde(rename = "delivered", skip_serializing_if = "Option::is_none")]
pub delivered: Option<i32>,
/// DMs confirmed read (IG messaging_seen / Messenger message_reads).
#[serde(rename = "read", skip_serializing_if = "Option::is_none")]
pub read: Option<i32>,
/// Triggers the audience rule did not answer with the DM.
#[serde(rename = "audienceSkipped", skip_serializing_if = "Option::is_none")]
pub audience_skipped: Option<i32>,
#[serde(rename = "followGateSent", skip_serializing_if = "Option::is_none")]
pub follow_gate_sent: Option<i32>,
#[serde(rename = "followGatePassed", skip_serializing_if = "Option::is_none")]
pub follow_gate_passed: Option<i32>,
#[serde(rename = "followGateFailed", skip_serializing_if = "Option::is_none")]
pub follow_gate_failed: Option<i32>,
}
impl CommentAutomationStats {
/// Running counters for the automation.
pub fn new() -> CommentAutomationStats {
CommentAutomationStats {
triggered: None,
dms_sent: None,
dms_failed: None,
unique_contacts: None,
tracked_sends: None,
link_clicks: None,
unique_clicks: None,
delivered: None,
read: None,
audience_skipped: None,
follow_gate_sent: None,
follow_gate_passed: None,
follow_gate_failed: None,
}
}
}