pulsar_admin_sdk/models/
memory_limit.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 MemoryLimit {
15    #[serde(rename = "absoluteValue", skip_serializing_if = "Option::is_none")]
16    pub absolute_value: Option<i64>,
17    #[serde(rename = "percentOfMaxDirectMemory", skip_serializing_if = "Option::is_none")]
18    pub percent_of_max_direct_memory: Option<f64>,
19}
20
21impl MemoryLimit {
22    pub fn new() -> MemoryLimit {
23        MemoryLimit {
24            absolute_value: None,
25            percent_of_max_direct_memory: None,
26        }
27    }
28}
29