/*
 * 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 GetBestTimeToPost200ResponseSlotsInner {
    /// 0=Monday, 6=Sunday
    #[serde(rename = "day_of_week", skip_serializing_if = "Option::is_none")]
    pub day_of_week: Option<i32>,
    /// Hour in UTC (0-23)
    #[serde(rename = "hour", skip_serializing_if = "Option::is_none")]
    pub hour: Option<i32>,
    /// Average engagement (likes + comments + shares + saves)
    #[serde(rename = "avg_engagement", skip_serializing_if = "Option::is_none")]
    pub avg_engagement: Option<f64>,
    /// Number of posts in this slot
    #[serde(rename = "post_count", skip_serializing_if = "Option::is_none")]
    pub post_count: Option<i32>,
}

impl GetBestTimeToPost200ResponseSlotsInner {
    pub fn new() -> GetBestTimeToPost200ResponseSlotsInner {
        GetBestTimeToPost200ResponseSlotsInner {
            day_of_week: None,
            hour: None,
            avg_engagement: None,
            post_count: None,
        }
    }
}
