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 CreateEvalDatasetRequest {
    #[serde(rename = "path")]
    pub path: String,
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    #[serde(rename = "scorers", skip_serializing_if = "Option::is_none")]
    pub scorers: Option<Vec<models::Scorer>>,
    /// The cases to create the dataset holding, so one can be assembled in a single act rather than created empty and filled in afterwards.
    #[serde(rename = "cases", skip_serializing_if = "Option::is_none")]
    pub cases: Option<Vec<models::NewEvalCase>>,
}

impl CreateEvalDatasetRequest {
    pub fn new(path: String) -> CreateEvalDatasetRequest {
        CreateEvalDatasetRequest {
            path,
            summary: None,
            scorers: None,
            cases: None,
        }
    }
}