hanzo_client/models/limits_block.rs
1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LimitsBlock {
16 /// APIRateLimit is requests per minute allowed against the REST /v1/world surface. -1 means unlimited.
17 #[serde(rename = "apiRateLimit", skip_serializing_if = "Option::is_none")]
18 pub api_rate_limit: Option<i32>,
19 /// MaxAlerts is how many saved OSINT alert rules the plan allows. -1 means unlimited.
20 #[serde(rename = "maxAlerts", skip_serializing_if = "Option::is_none")]
21 pub max_alerts: Option<i32>,
22 /// MCPRateLimit is requests per minute allowed against the MCP surface. -1 means unlimited.
23 #[serde(rename = "mcpRateLimit", skip_serializing_if = "Option::is_none")]
24 pub mcp_rate_limit: Option<i32>,
25 /// ModelAPI is whether the plan reaches the World model endpoint and the SSE stream. The free floor is false, and that is what a catalog outage resolves to.
26 #[serde(rename = "modelApi", skip_serializing_if = "Option::is_none")]
27 pub model_api: Option<bool>,
28}
29
30impl LimitsBlock {
31 pub fn new() -> LimitsBlock {
32 LimitsBlock {
33 api_rate_limit: None,
34 max_alerts: None,
35 mcp_rate_limit: None,
36 model_api: None,
37 }
38 }
39}
40