/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct JobDiff {
    #[serde(
        rename = "TaskGroups",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub task_groups: Vec<super::TaskGroupDiff>,

    #[serde(rename = "Type")]
    pub r#type: String,

    #[serde(rename = "ID")]
    pub id: String,

    #[serde(
        rename = "Fields",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub fields: Vec<super::FieldDiff>,

    #[serde(
        rename = "Objects",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub objects: Vec<super::ObjectDiff>,
}
