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 Overview {
    /// Commerce is the orders/revenue lens over product events.
    #[serde(rename = "commerce", skip_serializing_if = "Option::is_none")]
    pub commerce: Option<Box<models::CommerceOverview>>,
    /// End is the window's exclusive upper bound, RFC3339 UTC.
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<String>,
    /// Interval is the bucket width the window implies: hour or day.
    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
    pub interval: Option<String>,
    /// LLM is the LLM usage lens — real per-org data.
    #[serde(rename = "llm", skip_serializing_if = "Option::is_none")]
    pub llm: Option<Box<models::LlmOverview>>,
    /// Range is the window that was actually applied: 24h, 7d, 30d or custom.
    #[serde(rename = "range", skip_serializing_if = "Option::is_none")]
    pub range: Option<String>,
    /// Scope names the tenant these numbers belong to.
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<Box<models::Scope>>,
    /// Start is the window's inclusive lower bound, RFC3339 UTC.
    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
    pub start: Option<String>,
    /// Web is the web-traffic lens over product events.
    #[serde(rename = "web", skip_serializing_if = "Option::is_none")]
    pub web: Option<Box<models::WebOverview>>,
}

impl Overview {
    pub fn new() -> Overview {
        Overview {
            commerce: None,
            end: None,
            interval: None,
            llm: None,
            range: None,
            scope: None,
            start: None,
            web: None,
        }
    }
}