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 ActivityPoint {
    /// CostCents is the day's spend in whole US cents. A series is only ever returned for a subject the caller is authorized to see, so this is never withheld: 0 means no spend that day.
    #[serde(rename = "costCents", skip_serializing_if = "Option::is_none")]
    pub cost_cents: Option<i32>,
    /// Day is the UTC calendar day this point covers, \"2006-01-02\".
    #[serde(rename = "day", skip_serializing_if = "Option::is_none")]
    pub day: Option<String>,
    /// Requests is the subject's request count on this day. 0 is a real, quiet day: the series is gap-filled, so every day in the range is present whether or not anything happened.
    #[serde(rename = "requests", skip_serializing_if = "Option::is_none")]
    pub requests: Option<i32>,
    /// Tokens is prompt+completion tokens on this day — normally the heatmap's intensity, scaled against ActivityTotals.MaxTokens.
    #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
    pub tokens: Option<i32>,
}

impl ActivityPoint {
    pub fn new() -> ActivityPoint {
        ActivityPoint {
            cost_cents: None,
            day: None,
            requests: None,
            tokens: None,
        }
    }
}