/*
 * 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 AllocatedSharedResources {
    #[serde(rename = "DiskMB")]
    pub disk_mb: i64,

    #[serde(
        rename = "Networks",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub networks: Vec<super::NetworkResource>,

    #[serde(
        rename = "Ports",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub ports: Vec<super::PortMapping>,
}
