late 0.0.899

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).
Documentation
/*
 * 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 GetAdInsightsReport200Response {
    #[serde(rename = "reportRunId", skip_serializing_if = "Option::is_none")]
    pub report_run_id: Option<String>,
    /// Meta async_status: Job Not Started, Job Started, Job Running, Job Completed, Job Failed, Job Skipped.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "percentCompletion", skip_serializing_if = "Option::is_none")]
    pub percent_completion: Option<i32>,
    #[serde(rename = "dateStart", skip_serializing_if = "Option::is_none")]
    pub date_start: Option<String>,
    #[serde(rename = "dateStop", skip_serializing_if = "Option::is_none")]
    pub date_stop: Option<String>,
    /// Present only when status is Job Completed.
    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
    pub data: Option<Vec<serde_json::Value>>,
    #[serde(rename = "paging", skip_serializing_if = "Option::is_none")]
    pub paging: Option<Box<models::GetAdInsightsReport200ResponsePaging>>,
}

impl GetAdInsightsReport200Response {
    pub fn new() -> GetAdInsightsReport200Response {
        GetAdInsightsReport200Response {
            report_run_id: None,
            status: None,
            percent_completion: None,
            date_start: None,
            date_stop: None,
            data: None,
            paging: None,
        }
    }
}