pulsar_admin_sdk/models/
dispatch_rate_impl.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 DispatchRateImpl {
15    #[serde(rename = "dispatchThrottlingRateInByte", skip_serializing_if = "Option::is_none")]
16    pub dispatch_throttling_rate_in_byte: Option<i64>,
17    #[serde(rename = "dispatchThrottlingRateInMsg", skip_serializing_if = "Option::is_none")]
18    pub dispatch_throttling_rate_in_msg: Option<i32>,
19    #[serde(rename = "ratePeriodInSecond", skip_serializing_if = "Option::is_none")]
20    pub rate_period_in_second: Option<i32>,
21    #[serde(rename = "relativeToPublishRate", skip_serializing_if = "Option::is_none")]
22    pub relative_to_publish_rate: Option<bool>,
23}
24
25impl DispatchRateImpl {
26    pub fn new() -> DispatchRateImpl {
27        DispatchRateImpl {
28            dispatch_throttling_rate_in_byte: None,
29            dispatch_throttling_rate_in_msg: None,
30            rate_period_in_second: None,
31            relative_to_publish_rate: None,
32        }
33    }
34}
35