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 RunSummary {
    /// AvgScore is the mean over the scored examples, 0 when none scored.
    #[serde(rename = "avgScore", skip_serializing_if = "Option::is_none")]
    pub avg_score: Option<f64>,
    /// 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 the run 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>,
    /// Results is one row per attempted example.
    #[serde(rename = "results", skip_serializing_if = "Option::is_none")]
    pub results: Option<Vec<models::ItemResult>>,
    /// RunName is the run's label, which scores and traces are filed under.
    #[serde(rename = "runName", skip_serializing_if = "Option::is_none")]
    pub run_name: Option<String>,
    /// Scored is how many produced a real score. It counts successes only, so a partial run is honest about what it achieved.
    #[serde(rename = "scored", skip_serializing_if = "Option::is_none")]
    pub scored: Option<i32>,
}

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