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 Rollup {
    #[serde(rename = "balance", skip_serializing_if = "Option::is_none")]
    pub balance: Option<Box<models::RollupBalance>>,
    #[serde(rename = "consumedCents", skip_serializing_if = "Option::is_none")]
    pub consumed_cents: Option<i32>,
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    #[serde(rename = "included", skip_serializing_if = "Option::is_none")]
    pub included: Option<Box<models::RollupAllotment>>,
    #[serde(rename = "overageCents", skip_serializing_if = "Option::is_none")]
    pub overage_cents: Option<i32>,
    #[serde(rename = "period", skip_serializing_if = "Option::is_none")]
    pub period: Option<String>,
    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
    pub plan: Option<String>,
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
    #[serde(rename = "windows", skip_serializing_if = "Option::is_none")]
    pub windows: Option<Vec<models::Window>>,
}

impl Rollup {
    pub fn new() -> Rollup {
        Rollup {
            balance: None,
            consumed_cents: None,
            currency: None,
            included: None,
            overage_cents: None,
            period: None,
            plan: None,
            user: None,
            windows: None,
        }
    }
}