/*
 * 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.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 GetConversionsQuality200ResponseRowsInner {
    #[serde(rename = "eventName", skip_serializing_if = "Option::is_none")]
    pub event_name: Option<String>,
    /// Composite EMQ score, 0-10.
    #[serde(rename = "compositeScore", skip_serializing_if = "Option::is_none")]
    pub composite_score: Option<f64>,
    #[serde(rename = "matchKeys", skip_serializing_if = "Option::is_none")]
    pub match_keys: Option<Vec<models::GetConversionsQuality200ResponseRowsInnerMatchKeysInner>>,
    /// Pixel↔CAPI coverage rate for this event.
    #[serde(
        rename = "eventCoveragePercentage",
        skip_serializing_if = "Option::is_none"
    )]
    pub event_coverage_percentage: Option<f64>,
}

impl GetConversionsQuality200ResponseRowsInner {
    pub fn new() -> GetConversionsQuality200ResponseRowsInner {
        GetConversionsQuality200ResponseRowsInner {
            event_name: None,
            composite_score: None,
            match_keys: None,
            event_coverage_percentage: None,
        }
    }
}
