windmill-api 1.796.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.796.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExperimentResults200Response {
    #[serde(rename = "experiment")]
    pub experiment: Box<models::EvalExperiment>,
    #[serde(rename = "baseline", skip_serializing_if = "Option::is_none")]
    pub baseline: Option<Box<models::EvalExperiment>>,
    /// The columns, which belong to the dataset rather than the experiment.
    #[serde(rename = "scorers")]
    pub scorers: Vec<models::Scorer>,
    #[serde(rename = "rows")]
    pub rows: Vec<models::ExperimentRow>,
    #[serde(rename = "means")]
    pub means: Vec<models::ScorerMean>,
    /// Cells scoring lower than the baseline, across every column.
    #[serde(rename = "regressed")]
    pub regressed: i32,
    /// The version the subject is on now. A row that ran against an earlier one describes an agent that no longer exists. 
    #[serde(rename = "subject_current_version", skip_serializing_if = "Option::is_none")]
    pub subject_current_version: Option<i64>,
    /// What the agent hashes to as deployed. A run of unsaved edits carrying this hash ran exactly what is deployed now — the edits were saved — so it is a run of that version rather than of edits. 
    #[serde(rename = "subject_deployed_hash", skip_serializing_if = "Option::is_none")]
    pub subject_deployed_hash: Option<String>,
}

impl ExperimentResults200Response {
    pub fn new(experiment: models::EvalExperiment, scorers: Vec<models::Scorer>, rows: Vec<models::ExperimentRow>, means: Vec<models::ScorerMean>, regressed: i32) -> ExperimentResults200Response {
        ExperimentResults200Response {
            experiment: Box::new(experiment),
            baseline: None,
            scorers,
            rows,
            means,
            regressed,
            subject_current_version: None,
            subject_deployed_hash: None,
        }
    }
}