nomad_client_rs/models/
scheduler_configuration.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct SchedulerConfiguration {
5 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
6 pub create_index: Option<i32>,
7 #[serde(
8 rename = "MemoryOversubscriptionEnabled",
9 skip_serializing_if = "Option::is_none"
10 )]
11 pub memory_oversubscription_enabled: Option<bool>,
12 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
13 pub modify_index: Option<i32>,
14 #[serde(rename = "PauseEvalBroker", skip_serializing_if = "Option::is_none")]
15 pub pause_eval_broker: Option<bool>,
16 #[serde(rename = "PreemptionConfig", skip_serializing_if = "Option::is_none")]
17 pub preemption_config: Option<crate::models::PreemptionConfig>,
18 #[serde(
19 rename = "RejectJobRegistration",
20 skip_serializing_if = "Option::is_none"
21 )]
22 pub reject_job_registration: Option<bool>,
23 #[serde(rename = "SchedulerAlgorithm", skip_serializing_if = "Option::is_none")]
24 pub scheduler_algorithm: Option<String>,
25}