/*
 * 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 MultiregionRegion {
    #[serde(rename = "Name")]
    pub name: String,

    #[serde(rename = "Count", skip_serializing_if = "Option::is_none")]
    pub count: Option<i64>,

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

    #[serde(rename = "NodePool")]
    pub node_pool: String,

    #[serde(rename = "Meta")]
    pub meta: std::collections::HashMap<String, String>,
}
