nomad_client_rs/models/
scaling_event.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct ScalingEvent {
5    #[serde(rename = "Count", skip_serializing_if = "Option::is_none")]
6    pub count: Option<i64>,
7    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
8    pub create_index: Option<i32>,
9    #[serde(rename = "Error", skip_serializing_if = "Option::is_none")]
10    pub error: Option<bool>,
11    #[serde(rename = "EvalID", skip_serializing_if = "Option::is_none")]
12    pub eval_id: Option<String>,
13    #[serde(rename = "Message", skip_serializing_if = "Option::is_none")]
14    pub message: Option<String>,
15    #[serde(rename = "Meta", skip_serializing_if = "Option::is_none")]
16    pub meta: Option<::std::collections::HashMap<String, serde_json::Value>>,
17    #[serde(rename = "PreviousCount", skip_serializing_if = "Option::is_none")]
18    pub previous_count: Option<i64>,
19    #[serde(rename = "Time", skip_serializing_if = "Option::is_none")]
20    pub time: Option<i32>,
21}