Skip to main content

hanzo_client/models/
rollup.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 Rollup {
16    #[serde(rename = "balance", skip_serializing_if = "Option::is_none")]
17    pub balance: Option<Box<models::RollupBalance>>,
18    #[serde(rename = "consumedCents", skip_serializing_if = "Option::is_none")]
19    pub consumed_cents: Option<i32>,
20    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
21    pub currency: Option<String>,
22    #[serde(rename = "included", skip_serializing_if = "Option::is_none")]
23    pub included: Option<Box<models::RollupAllotment>>,
24    #[serde(rename = "overageCents", skip_serializing_if = "Option::is_none")]
25    pub overage_cents: Option<i32>,
26    #[serde(rename = "period", skip_serializing_if = "Option::is_none")]
27    pub period: Option<String>,
28    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
29    pub plan: Option<String>,
30    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
31    pub user: Option<String>,
32    #[serde(rename = "windows", skip_serializing_if = "Option::is_none")]
33    pub windows: Option<Vec<models::Window>>,
34}
35
36impl Rollup {
37    pub fn new() -> Rollup {
38        Rollup {
39            balance: None,
40            consumed_cents: None,
41            currency: None,
42            included: None,
43            overage_cents: None,
44            period: None,
45            plan: None,
46            user: None,
47            windows: None,
48        }
49    }
50}
51