1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Pulsar Admin REST API
 *
 * This provides the REST API for admin operations
 *
 * The version of the OpenAPI document: v2
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DispatchRateImpl {
    #[serde(rename = "dispatchThrottlingRateInByte", skip_serializing_if = "Option::is_none")]
    pub dispatch_throttling_rate_in_byte: Option<i64>,
    #[serde(rename = "dispatchThrottlingRateInMsg", skip_serializing_if = "Option::is_none")]
    pub dispatch_throttling_rate_in_msg: Option<i32>,
    #[serde(rename = "ratePeriodInSecond", skip_serializing_if = "Option::is_none")]
    pub rate_period_in_second: Option<i32>,
    #[serde(rename = "relativeToPublishRate", skip_serializing_if = "Option::is_none")]
    pub relative_to_publish_rate: Option<bool>,
}

impl DispatchRateImpl {
    pub fn new() -> DispatchRateImpl {
        DispatchRateImpl {
            dispatch_throttling_rate_in_byte: None,
            dispatch_throttling_rate_in_msg: None,
            rate_period_in_second: None,
            relative_to_publish_rate: None,
        }
    }
}