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 ActivityTotals {
    /// ActiveDays counts the days with any usage at all — the streak/consistency number. Compare it against len(days) for the share of days the subject showed up.
    #[serde(rename = "activeDays", skip_serializing_if = "Option::is_none")]
    pub active_days: Option<i32>,
    /// CostCents is the window's spend in whole US cents, the sum of Days[].CostCents.
    #[serde(rename = "costCents", skip_serializing_if = "Option::is_none")]
    pub cost_cents: Option<i32>,
    /// MaxRequests is the same ceiling for a request-based heatmap — the busiest single day's request count, 0 for an idle window.
    #[serde(rename = "maxRequests", skip_serializing_if = "Option::is_none")]
    pub max_requests: Option<i32>,
    /// MaxTokens is the busiest single day's token count: the ceiling to normalize a token heatmap against, so the darkest cell is that day. 0 for an idle window, which a client must not divide by.
    #[serde(rename = "maxTokens", skip_serializing_if = "Option::is_none")]
    pub max_tokens: Option<i32>,
    /// Requests is the sum of Days[].Requests over the whole window.
    #[serde(rename = "requests", skip_serializing_if = "Option::is_none")]
    pub requests: Option<i32>,
    /// Tokens is the sum of Days[].Tokens over the whole window.
    #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
    pub tokens: Option<i32>,
}

impl ActivityTotals {
    pub fn new() -> ActivityTotals {
        ActivityTotals {
            active_days: None,
            cost_cents: None,
            max_requests: None,
            max_tokens: None,
            requests: None,
            tokens: None,
        }
    }
}