nomad_client/models/
operator_health_reply.rs

1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OperatorHealthReply {
16    #[serde(rename = "Healthy", skip_serializing_if = "Option::is_none")]
17    pub healthy: Option<bool>,
18    #[serde(rename = "FailureTolerance", skip_serializing_if = "Option::is_none")]
19    pub failure_tolerance: Option<i32>,
20    #[serde(rename = "Servers", skip_serializing_if = "Option::is_none")]
21    pub servers: Option<Vec<crate::models::ServerHealth>>,
22}
23
24impl OperatorHealthReply {
25    pub fn new() -> OperatorHealthReply {
26        OperatorHealthReply {
27            healthy: None,
28            failure_tolerance: None,
29            servers: None,
30        }
31    }
32}
33
34