pulsar_admin_sdk/models/
pool_chunk_stats.rs

1/*
2 * Pulsar Admin REST API
3 *
4 * This provides the REST API for admin operations
5 *
6 * The version of the OpenAPI document: v2
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct PoolChunkStats {
15    #[serde(rename = "chunkSize", skip_serializing_if = "Option::is_none")]
16    pub chunk_size: Option<i32>,
17    #[serde(rename = "freeBytes", skip_serializing_if = "Option::is_none")]
18    pub free_bytes: Option<i32>,
19    #[serde(rename = "usage", skip_serializing_if = "Option::is_none")]
20    pub usage: Option<i32>,
21}
22
23impl PoolChunkStats {
24    pub fn new() -> PoolChunkStats {
25        PoolChunkStats {
26            chunk_size: None,
27            free_bytes: None,
28            usage: None,
29        }
30    }
31}
32