/*
* 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.610.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// AccountWithFollowerStatsAllOfAccountStats : Platform-specific account counters from the latest daily snapshot. Each platform reports its own subset of the keys below, and no other key is returned. Absent when the platform reports none of them.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AccountWithFollowerStatsAllOfAccountStats {
/// Number of accounts being followed (TikTok, X, Pinterest, Bluesky)
#[serde(rename = "followingCount", skip_serializing_if = "Option::is_none")]
pub following_count: Option<f64>,
/// Number of accounts being followed (Instagram)
#[serde(rename = "followsCount", skip_serializing_if = "Option::is_none")]
pub follows_count: Option<f64>,
/// Total media posts (Instagram)
#[serde(rename = "mediaCount", skip_serializing_if = "Option::is_none")]
pub media_count: Option<f64>,
/// Total videos (YouTube, TikTok)
#[serde(rename = "videoCount", skip_serializing_if = "Option::is_none")]
pub video_count: Option<f64>,
/// Total tweets (X)
#[serde(rename = "tweetCount", skip_serializing_if = "Option::is_none")]
pub tweet_count: Option<f64>,
/// Total posts (Bluesky)
#[serde(rename = "postsCount", skip_serializing_if = "Option::is_none")]
pub posts_count: Option<f64>,
/// Total pins (Pinterest)
#[serde(rename = "pinCount", skip_serializing_if = "Option::is_none")]
pub pin_count: Option<f64>,
/// Total channel views (YouTube)
#[serde(rename = "totalViews", skip_serializing_if = "Option::is_none")]
pub total_views: Option<f64>,
/// Total likes received (TikTok)
#[serde(rename = "likesCount", skip_serializing_if = "Option::is_none")]
pub likes_count: Option<f64>,
/// Monthly profile views (Pinterest). null when Pinterest reports no window
#[serde(
rename = "monthlyViews",
default,
with = "::serde_with::rust::double_option",
skip_serializing_if = "Option::is_none"
)]
pub monthly_views: Option<Option<f64>>,
/// Lists the user appears on (X)
#[serde(rename = "listedCount", skip_serializing_if = "Option::is_none")]
pub listed_count: Option<f64>,
/// Total boards (Pinterest)
#[serde(rename = "boardCount", skip_serializing_if = "Option::is_none")]
pub board_count: Option<f64>,
}
impl AccountWithFollowerStatsAllOfAccountStats {
/// Platform-specific account counters from the latest daily snapshot. Each platform reports its own subset of the keys below, and no other key is returned. Absent when the platform reports none of them.
pub fn new() -> AccountWithFollowerStatsAllOfAccountStats {
AccountWithFollowerStatsAllOfAccountStats {
following_count: None,
follows_count: None,
media_count: None,
video_count: None,
tweet_count: None,
posts_count: None,
pin_count: None,
total_views: None,
likes_count: None,
monthly_views: None,
listed_count: None,
board_count: None,
}
}
}