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
57
58
59
60
/*
* 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 ScoreView {
/// Comment is the grader's reasoning, truncated at 2000 characters.
#[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
/// DataType is NUMERIC, CATEGORICAL or BOOLEAN.
#[serde(rename = "dataType", skip_serializing_if = "Option::is_none")]
pub data_type: Option<String>,
/// ID is the score event's handle.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Name is the score name, which a rubric of the same name governs.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// RunName is the run this score was recorded under, when it came from one.
#[serde(rename = "runName", skip_serializing_if = "Option::is_none")]
pub run_name: Option<String>,
/// StringValue is the label of a CATEGORICAL score.
#[serde(rename = "stringValue", skip_serializing_if = "Option::is_none")]
pub string_value: Option<String>,
/// Timestamp is when the score was recorded.
#[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
pub timestamp: Option<String>,
/// TraceID is the model call this score grades, when it grades one.
#[serde(rename = "traceId", skip_serializing_if = "Option::is_none")]
pub trace_id: Option<String>,
/// Value is the numeric score; for BOOLEAN it is 0 or 1.
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<f64>,
}
impl ScoreView {
pub fn new() -> ScoreView {
ScoreView {
comment: None,
data_type: None,
id: None,
name: None,
run_name: None,
string_value: None,
timestamp: None,
trace_id: None,
value: None,
}
}
}