windmill_api/models/update_eval_dataset_request.rs
1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.796.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UpdateEvalDatasetRequest {
16 /// Renames the dataset. Its cases and experiments follow through the foreign keys, so a rename keeps the history it already has.
17 #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
18 pub path: Option<String>,
19 /// Left out to keep the stored summary; sent as \"\" to clear it.
20 #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
21 pub summary: Option<String>,
22 /// Left out to keep the dataset's columns as they are; sent to replace them wholesale.
23 #[serde(rename = "scorers", skip_serializing_if = "Option::is_none")]
24 pub scorers: Option<Vec<models::Scorer>>,
25 /// The cases as they should stand afterwards: all of them, each carrying its id if the dataset already has it. Sent with the rest of an edit so that a rename the dataset refuses refuses the case edits with it.
26 #[serde(rename = "cases", skip_serializing_if = "Option::is_none")]
27 pub cases: Option<Vec<models::SaveEvalCase>>,
28}
29
30impl UpdateEvalDatasetRequest {
31 pub fn new() -> UpdateEvalDatasetRequest {
32 UpdateEvalDatasetRequest {
33 path: None,
34 summary: None,
35 scorers: None,
36 cases: None,
37 }
38 }
39}
40