nomad_client_rs/models/
preemption_config.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct PreemptionConfig {
5 #[serde(
6 rename = "BatchSchedulerEnabled",
7 skip_serializing_if = "Option::is_none"
8 )]
9 pub batch_scheduler_enabled: Option<bool>,
10 #[serde(
11 rename = "ServiceSchedulerEnabled",
12 skip_serializing_if = "Option::is_none"
13 )]
14 pub service_scheduler_enabled: Option<bool>,
15 #[serde(
16 rename = "SysBatchSchedulerEnabled",
17 skip_serializing_if = "Option::is_none"
18 )]
19 pub sys_batch_scheduler_enabled: Option<bool>,
20 #[serde(
21 rename = "SystemSchedulerEnabled",
22 skip_serializing_if = "Option::is_none"
23 )]
24 pub system_scheduler_enabled: Option<bool>,
25}