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 PricingModelList {
    /// Models are the catalog entries visible to the caller, each an opaque object exactly as the pricing source emits it, with any admin override merged on top. An admin additionally sees hidden entries, each annotated under \"_overlay\".
    #[serde(rename = "models", skip_serializing_if = "Option::is_none")]
    pub models: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
    /// Total is how many models this answer carries — recounted over the visible set, not the catalog's own total.
    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
    pub total: Option<i32>,
    /// Updated is when the catalog was last refreshed, as the pricing source recorded it.
    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
    pub updated: Option<serde_json::Value>,
}

impl PricingModelList {
    pub fn new() -> PricingModelList {
        PricingModelList {
            models: None,
            total: None,
            updated: None,
        }
    }
}