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 Board {
    /// the top models by spend
    #[serde(rename = "byModel", skip_serializing_if = "Option::is_none")]
    pub by_model: Option<Vec<models::ModelStat>>,
    /// overall latency percentiles from the GenAI spans
    #[serde(rename = "latency", skip_serializing_if = "Option::is_none")]
    pub latency: Option<Box<models::LatencyStat>>,
    /// the long tail beyond the top models, folded into one row
    #[serde(rename = "other", skip_serializing_if = "Option::is_none")]
    pub other: Option<Box<models::ModelStat>>,
    /// the window they were computed over, echoed back
    #[serde(rename = "range", skip_serializing_if = "Option::is_none")]
    pub range: Option<Box<models::BoardRange>>,
    /// whose numbers these are
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<Box<models::BoardScope>>,
    /// one gap-filled bucket per interval, so a chart never breaks
    #[serde(rename = "series", skip_serializing_if = "Option::is_none")]
    pub series: Option<Vec<models::BoardPoint>>,
    /// the window's headline numbers
    #[serde(rename = "totals", skip_serializing_if = "Option::is_none")]
    pub totals: Option<Box<models::BoardTotals>>,
}

impl Board {
    pub fn new() -> Board {
        Board {
            by_model: None,
            latency: None,
            other: None,
            range: None,
            scope: None,
            series: None,
            totals: None,
        }
    }
}