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 UsageSummary {
    /// Accounts is the caller's own linked provider accounts beside the org's Hanzo-routed usage, labelled row by row and never summed together.
    #[serde(rename = "accounts", skip_serializing_if = "Option::is_none")]
    pub accounts: Option<Box<models::Accounts>>,
    /// End is the window's exclusive end, RFC3339 UTC.
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<String>,
    /// Interval is the bucket width the spend series is gap-filled at.
    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
    pub interval: Option<String>,
    /// LLM is the org's Hanzo-routed inference totals from the warehouse.
    #[serde(rename = "llm", skip_serializing_if = "Option::is_none")]
    pub llm: Option<Box<models::Llm>>,
    /// Range is the window label that was served.
    #[serde(rename = "range", skip_serializing_if = "Option::is_none")]
    pub range: Option<String>,
    /// Scope is the tenant and subject the roll-up was answered for.
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<Box<models::UsageScope>>,
    /// Sources says which upstreams actually answered, so a zero can be read as \"no data yet\" rather than as a measurement.
    #[serde(rename = "sources", skip_serializing_if = "Option::is_none")]
    pub sources: Option<Box<models::Sources>>,
    /// Spend is the categorized cost roll-up from the billing ledger.
    #[serde(rename = "spend", skip_serializing_if = "Option::is_none")]
    pub spend: Option<Box<models::Spend>>,
    /// Start is the window's inclusive start, RFC3339 UTC.
    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
    pub start: Option<String>,
}

impl UsageSummary {
    pub fn new() -> UsageSummary {
        UsageSummary {
            accounts: None,
            end: None,
            interval: None,
            llm: None,
            range: None,
            scope: None,
            sources: None,
            spend: None,
            start: None,
        }
    }
}