nomad_client/models/
scheduler_configuration.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 SchedulerConfiguration {
16    #[serde(rename = "PreemptionConfig", skip_serializing_if = "Option::is_none")]
17    pub preemption_config: Option<Box<crate::models::PreemptionConfig>>,
18    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
19    pub create_index: Option<i32>,
20    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
21    pub modify_index: Option<i32>,
22}
23
24impl SchedulerConfiguration {
25    pub fn new() -> SchedulerConfiguration {
26        SchedulerConfiguration {
27            preemption_config: None,
28            create_index: None,
29            modify_index: None,
30        }
31    }
32}
33
34