windmill-api 1.797.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.797.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// ScorerMean : A column's summary. There is no single number for a dataset: averaging a judge with an exact match would invent one. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ScorerMean {
    #[serde(rename = "scorer_id")]
    pub scorer_id: String,
    #[serde(rename = "mean", skip_serializing_if = "Option::is_none")]
    pub mean: Option<f64>,
    #[serde(rename = "baseline_mean", skip_serializing_if = "Option::is_none")]
    pub baseline_mean: Option<f64>,
    /// The share of scored cells that passed, for a column with a threshold. Reported beside the mean rather than instead of it: a pass rate says how many cases are good enough, a mean says by how much, and neither answers the other's question. 
    #[serde(rename = "pass_rate", skip_serializing_if = "Option::is_none")]
    pub pass_rate: Option<f64>,
    #[serde(rename = "baseline_pass_rate", skip_serializing_if = "Option::is_none")]
    pub baseline_pass_rate: Option<f64>,
    #[serde(rename = "scored")]
    pub scored: i32,
    /// Cells the baseline has no score for, so a column the baseline never ran shows as unscored rather than as a spurious difference.
    #[serde(rename = "missing_in_baseline")]
    pub missing_in_baseline: i32,
    #[serde(rename = "definition_changed")]
    pub definition_changed: bool,
}

impl ScorerMean {
    /// A column's summary. There is no single number for a dataset: averaging a judge with an exact match would invent one. 
    pub fn new(scorer_id: String, scored: i32, missing_in_baseline: i32, definition_changed: bool) -> ScorerMean {
        ScorerMean {
            scorer_id,
            mean: None,
            baseline_mean: None,
            pass_rate: None,
            baseline_pass_rate: None,
            scored,
            missing_in_baseline,
            definition_changed,
        }
    }
}