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 O11yPeriodO11yLlmUser {
    /// CompletionTokens is their total output tokens.
    #[serde(rename = "completionTokens", skip_serializing_if = "Option::is_none")]
    pub completion_tokens: Option<i32>,
    /// ID is the end user's id (user.id).
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Observations is how many observations they produced.
    #[serde(rename = "observations", skip_serializing_if = "Option::is_none")]
    pub observations: Option<i32>,
    /// PromptTokens is their total input tokens.
    #[serde(rename = "promptTokens", skip_serializing_if = "Option::is_none")]
    pub prompt_tokens: Option<i32>,
    /// Sessions is how many conversations they had.
    #[serde(rename = "sessions", skip_serializing_if = "Option::is_none")]
    pub sessions: Option<i32>,
    /// TotalCost is their total cost.
    #[serde(rename = "totalCost", skip_serializing_if = "Option::is_none")]
    pub total_cost: Option<f64>,
    /// TotalTokens is their total tokens.
    #[serde(rename = "totalTokens", skip_serializing_if = "Option::is_none")]
    pub total_tokens: Option<i32>,
    /// Traces is how many traces they produced.
    #[serde(rename = "traces", skip_serializing_if = "Option::is_none")]
    pub traces: Option<i32>,
}

impl O11yPeriodO11yLlmUser {
    pub fn new() -> O11yPeriodO11yLlmUser {
        O11yPeriodO11yLlmUser {
            completion_tokens: None,
            id: None,
            observations: None,
            prompt_tokens: None,
            sessions: None,
            total_cost: None,
            total_tokens: None,
            traces: None,
        }
    }
}