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 RunRecord {
    /// AvgScore is the mean over the scored examples.
    #[serde(rename = "avgScore", skip_serializing_if = "Option::is_none")]
    pub avg_score: Option<f64>,
    /// CreatedAt is when the run first landed.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Dataset is the set that was scored.
    #[serde(rename = "dataset", skip_serializing_if = "Option::is_none")]
    pub dataset: Option<String>,
    /// Items is how many examples were attempted.
    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
    pub items: Option<i32>,
    /// JudgeModel is the model that graded.
    #[serde(rename = "judgeModel", skip_serializing_if = "Option::is_none")]
    pub judge_model: Option<String>,
    /// Model is the model under test.
    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    /// RunName is the run's label.
    #[serde(rename = "runName", skip_serializing_if = "Option::is_none")]
    pub run_name: Option<String>,
    /// Scored is how many produced a real score.
    #[serde(rename = "scored", skip_serializing_if = "Option::is_none")]
    pub scored: Option<i32>,
    /// UpdatedAt is when the record last changed.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
}

impl RunRecord {
    pub fn new() -> RunRecord {
        RunRecord {
            avg_score: None,
            created_at: None,
            dataset: None,
            items: None,
            judge_model: None,
            model: None,
            run_name: None,
            scored: None,
            updated_at: None,
        }
    }
}