/*
 * 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 GetAccountHealth200ResponsePermissions {
    #[serde(rename = "posting", skip_serializing_if = "Option::is_none")]
    pub posting: Option<Vec<models::GetAccountHealth200ResponsePermissionsPostingInner>>,
    #[serde(rename = "analytics", skip_serializing_if = "Option::is_none")]
    pub analytics: Option<Vec<models::GetAccountHealth200ResponsePermissionsPostingInner>>,
    #[serde(rename = "optional", skip_serializing_if = "Option::is_none")]
    pub optional: Option<Vec<models::GetAccountHealth200ResponsePermissionsPostingInner>>,
    #[serde(rename = "canPost", skip_serializing_if = "Option::is_none")]
    pub can_post: Option<bool>,
    #[serde(rename = "canFetchAnalytics", skip_serializing_if = "Option::is_none")]
    pub can_fetch_analytics: Option<bool>,
    #[serde(rename = "missingRequired", skip_serializing_if = "Option::is_none")]
    pub missing_required: Option<Vec<String>>,
}

impl GetAccountHealth200ResponsePermissions {
    pub fn new() -> GetAccountHealth200ResponsePermissions {
        GetAccountHealth200ResponsePermissions {
            posting: None,
            analytics: None,
            optional: None,
            can_post: None,
            can_fetch_analytics: None,
            missing_required: None,
        }
    }
}
