hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}