redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// Gen-Z related properties for an address pool.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct GenZ {
    /// The Access Key required for this address pool.
    #[serde(rename = "AccessKey")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub access_key: Option<String>,
    /// The maximum value for the Component Identifier (CID).
    #[serde(rename = "MaxCID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_cid: Option<i64>,
    /// The maximum value for the Subnet Identifier (SID).
    #[serde(rename = "MaxSID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_sid: Option<i64>,
    /// The minimum value for the Component Identifier (CID).
    #[serde(rename = "MinCID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub min_cid: Option<i64>,
    /// The minimum value for the Subnet Identifier (SID).
    #[serde(rename = "MinSID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub min_sid: Option<i64>,
}

impl crate::Metadata<'static> for GenZ {
    const JSON_SCHEMA: &'static str = "AddressPool.v1_2_1.json";
}