/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * 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 ListCommentAutomations200ResponseAutomationsInnerStats {
    #[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>,
    /// 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>,
}

impl ListCommentAutomations200ResponseAutomationsInnerStats {
    pub fn new() -> ListCommentAutomations200ResponseAutomationsInnerStats {
        ListCommentAutomations200ResponseAutomationsInnerStats {
            triggered: None,
            dms_sent: None,
            dms_failed: None,
            unique_contacts: None,
            link_clicks: None,
            unique_clicks: None,
            delivered: None,
            read: None,
        }
    }
}
