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 RecentScorers200ResponseInner {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Column header. Defaults to the last segment of the path.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// A score at or above this counts as a pass, and the column reports a pass rate beside its mean. Applied when results are read rather than when they are produced, so moving the line re-reads every score already recorded instead of invalidating them. 
    #[serde(rename = "pass_if", skip_serializing_if = "Option::is_none")]
    pub pass_if: Option<f64>,
    #[serde(rename = "kind")]
    pub kind: Kind,
    /// The script, or the ai_agent resource used as a judge.
    #[serde(rename = "path")]
    pub path: String,
    /// The dataset it is a column of.
    #[serde(rename = "dataset")]
    pub dataset: String,
}

impl RecentScorers200ResponseInner {
    pub fn new(kind: Kind, path: String, dataset: String) -> RecentScorers200ResponseInner {
        RecentScorers200ResponseInner {
            id: None,
            name: None,
            pass_if: None,
            kind,
            path,
            dataset,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Kind {
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "agent")]
    Agent,
}

impl Default for Kind {
    fn default() -> Kind {
        Self::Script
    }
}