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 TotalView {
    /// Confidence says how real the row's numbers are.
    #[serde(rename = "confidence", skip_serializing_if = "Option::is_none")]
    pub confidence: Option<String>,
    /// CostCents is the period's spend in cents, in the row's own ledger.
    #[serde(rename = "costCents", skip_serializing_if = "Option::is_none")]
    pub cost_cents: Option<i32>,
    /// Provider is the provider the row totals.
    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
    pub provider: Option<String>,
    /// Requests is the period's request count.
    #[serde(rename = "requests", skip_serializing_if = "Option::is_none")]
    pub requests: Option<i32>,
    /// Scope is whose usage the row measures: user or org.
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<String>,
    /// Source is whose meter the row came from: account or hanzo.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Tokens is the period's total token count.
    #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
    pub tokens: Option<i32>,
    /// UsedPct is the plan consumption percentage, on the account side.
    #[serde(rename = "usedPct", skip_serializing_if = "Option::is_none")]
    pub used_pct: Option<f64>,
    /// Window is the window class the row totals, on the account side.
    #[serde(rename = "window", skip_serializing_if = "Option::is_none")]
    pub window: Option<String>,
    /// Windows is how many window instances the row folds.
    #[serde(rename = "windows", skip_serializing_if = "Option::is_none")]
    pub windows: Option<i32>,
}

impl TotalView {
    pub fn new() -> TotalView {
        TotalView {
            confidence: None,
            cost_cents: None,
            provider: None,
            requests: None,
            scope: None,
            source: None,
            tokens: None,
            used_pct: None,
            window: None,
            windows: None,
        }
    }
}