pulsar_admin_sdk/models/
failure_domain.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/// FailureDomain : The data of a failure domain configuration in a cluster
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FailureDomain {
16    /// The collection of brokers in the same failure domain
17    #[serde(rename = "brokers", skip_serializing_if = "Option::is_none")]
18    pub brokers: Option<Vec<String>>,
19}
20
21impl FailureDomain {
22    /// The data of a failure domain configuration in a cluster
23    pub fn new() -> FailureDomain {
24        FailureDomain {
25            brokers: None,
26        }
27    }
28}
29