1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[allow(unused_imports)] use serde_json::Value; #[derive(Debug, Serialize, Deserialize)] pub struct JobType { /// Whether the job type is enabled and able to run. #[serde(rename = "enabled")] pub enabled: Option<bool>, /// Default impact policy of this job type. #[serde(rename = "policy")] pub policy: Option<String>, /// Default priority of this job type; lower numbers preempt higher numbers. #[serde(rename = "priority")] pub priority: Option<i32>, /// The schedule on which this job type is queued, if any. #[serde(rename = "schedule")] pub schedule: Option<String>, }