Skip to main content

hanzo_client/models/
limits_view.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 LimitsView {
16    /// Limits is the plan's decision.
17    #[serde(rename = "limits", skip_serializing_if = "Option::is_none")]
18    pub limits: Option<Box<models::LimitsBlock>>,
19    /// Plan echoes the plan id the limits were resolved for, after the empty-means- world-free default.
20    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
21    pub plan: Option<String>,
22    /// Unit names what the two rate numbers are counted in: requests/minute.
23    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
24    pub unit: Option<String>,
25}
26
27impl LimitsView {
28    pub fn new() -> LimitsView {
29        LimitsView {
30            limits: None,
31            plan: None,
32            unit: None,
33        }
34    }
35}
36