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 TierLimits {
    #[serde(rename = "allowedModels", skip_serializing_if = "Option::is_none")]
    pub allowed_models: Option<Vec<String>>,
    #[serde(rename = "dailyCreditsCents", skip_serializing_if = "Option::is_none")]
    pub daily_credits_cents: Option<i32>,
    #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    #[serde(rename = "maxAgents", skip_serializing_if = "Option::is_none")]
    pub max_agents: Option<i32>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// UnlimitedAgents reports that MaxAgents 0 means \"no ceiling\" rather than \"no agents\" — the reading a bare zero cannot carry.
    #[serde(rename = "unlimitedAgents", skip_serializing_if = "Option::is_none")]
    pub unlimited_agents: Option<bool>,
}

impl TierLimits {
    pub fn new() -> TierLimits {
        TierLimits {
            allowed_models: None,
            daily_credits_cents: None,
            display_name: None,
            max_agents: None,
            name: None,
            unlimited_agents: None,
        }
    }
}