hanzo_client/models/summary.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 Summary {
16 /// Calls is how many calls this org has placed or received, over its whole history — a running total, not a window.
17 #[serde(rename = "calls", skip_serializing_if = "Option::is_none")]
18 pub calls: Option<i32>,
19 /// Messages is the same running total for messages.
20 #[serde(rename = "messages", skip_serializing_if = "Option::is_none")]
21 pub messages: Option<i32>,
22 /// Numbers is how many numbers this org holds right now.
23 #[serde(rename = "numbers", skip_serializing_if = "Option::is_none")]
24 pub numbers: Option<i32>,
25}
26
27impl Summary {
28 pub fn new() -> Summary {
29 Summary {
30 calls: None,
31 messages: None,
32 numbers: None,
33 }
34 }
35}
36