/*
 * 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.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 LinkedInAggregateAnalyticsTotalResponseAnalytics {
    /// Total impressions across all posts
    #[serde(rename = "impressions", skip_serializing_if = "Option::is_none")]
    pub impressions: Option<i32>,
    /// Unique members reached across all posts
    #[serde(rename = "reach", skip_serializing_if = "Option::is_none")]
    pub reach: Option<i32>,
    /// Total reactions across all posts
    #[serde(rename = "reactions", skip_serializing_if = "Option::is_none")]
    pub reactions: Option<i32>,
    /// Total comments across all posts
    #[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
    pub comments: Option<i32>,
    /// Total reshares across all posts
    #[serde(rename = "shares", skip_serializing_if = "Option::is_none")]
    pub shares: Option<i32>,
    /// Overall engagement rate as percentage
    #[serde(rename = "engagementRate", skip_serializing_if = "Option::is_none")]
    pub engagement_rate: Option<f64>,
}

impl LinkedInAggregateAnalyticsTotalResponseAnalytics {
    pub fn new() -> LinkedInAggregateAnalyticsTotalResponseAnalytics {
        LinkedInAggregateAnalyticsTotalResponseAnalytics {
            impressions: None,
            reach: None,
            reactions: None,
            comments: None,
            shares: None,
            engagement_rate: None,
        }
    }
}
