1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItemView {
/// CreatedAt is when the example was first written.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
/// Dataset is the set this example belongs to.
#[serde(rename = "datasetName", skip_serializing_if = "Option::is_none")]
pub dataset_name: Option<String>,
/// Expected is the answer a correct model produces, which the judge grades against.
#[serde(rename = "expectedOutput", skip_serializing_if = "Option::is_none")]
pub expected_output: Option<serde_json::Value>,
/// ID is the example's handle, unique within the caller's org.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Input is what the model under test is given, as it was written.
#[serde(rename = "input", skip_serializing_if = "Option::is_none")]
pub input: Option<serde_json::Value>,
/// Metadata is the free-form object stored with the example.
#[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
pub metadata: Option<std::collections::HashMap<String, serde_json::Value>>,
/// Status is ACTIVE or ARCHIVED. Only ACTIVE examples are fed to a run, which is how one is retired without being deleted.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// UpdatedAt is when it last changed.
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
}
impl ItemView {
pub fn new() -> ItemView {
ItemView {
created_at: None,
dataset_name: None,
expected_output: None,
id: None,
input: None,
metadata: None,
status: None,
updated_at: None,
}
}
}