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

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

/// NamespaceCapabilities represents a set of capabilities allowed for this
/// namespace, to be checked at job submission time.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct NamespaceCapabilities {
    #[serde(
        rename = "EnabledTaskDrivers",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub enabled_task_drivers: Vec<String>,

    #[serde(
        rename = "DisabledTaskDrivers",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub disabled_task_drivers: Vec<String>,

    #[serde(
        rename = "EnabledNetworkModes",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub enabled_network_modes: Vec<String>,

    #[serde(
        rename = "DisabledNetworkModes",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub disabled_network_modes: Vec<String>,
}
