/*
* 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).
*
* 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 YouTubeDailyViewsResponseDailyViewsInner {
#[serde(rename = "date", skip_serializing_if = "Option::is_none")]
pub date: Option<String>,
#[serde(rename = "views", skip_serializing_if = "Option::is_none")]
pub views: Option<i32>,
#[serde(
rename = "estimatedMinutesWatched",
skip_serializing_if = "Option::is_none"
)]
pub estimated_minutes_watched: Option<f64>,
/// Average view duration in seconds
#[serde(
rename = "averageViewDuration",
skip_serializing_if = "Option::is_none"
)]
pub average_view_duration: Option<f64>,
/// Average percentage of the video watched per view. Can exceed 100 on Shorts (looping rewatches), so do not clamp it client-side.
#[serde(
rename = "averageViewPercentage",
skip_serializing_if = "Option::is_none"
)]
pub average_view_percentage: Option<f64>,
#[serde(rename = "subscribersGained", skip_serializing_if = "Option::is_none")]
pub subscribers_gained: Option<i32>,
#[serde(rename = "subscribersLost", skip_serializing_if = "Option::is_none")]
pub subscribers_lost: Option<i32>,
#[serde(rename = "likes", skip_serializing_if = "Option::is_none")]
pub likes: Option<i32>,
#[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
pub comments: Option<i32>,
#[serde(rename = "shares", skip_serializing_if = "Option::is_none")]
pub shares: Option<i32>,
}
impl YouTubeDailyViewsResponseDailyViewsInner {
pub fn new() -> YouTubeDailyViewsResponseDailyViewsInner {
YouTubeDailyViewsResponseDailyViewsInner {
date: None,
views: None,
estimated_minutes_watched: None,
average_view_duration: None,
average_view_percentage: None,
subscribers_gained: None,
subscribers_lost: None,
likes: None,
comments: None,
shares: None,
}
}
}