redfish-codegen 0.3.1

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

use crate::models;

/// The placement within the addressed location.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Placement {
    /// Area designation or other additional info.
    #[serde(rename = "AdditionalInfo")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub additional_info: Option<String>,
    /// The name of a rack location within a row.
    #[serde(rename = "Rack")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rack: Option<String>,
    /// The vertical location of the item, in terms of RackOffsetUnits.
    #[serde(rename = "RackOffset")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rack_offset: Option<i64>,
    #[serde(rename = "RackOffsetUnits")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rack_offset_units: Option<models::resource::v1_12_3::RackUnits>,
    /// The name of the row.
    #[serde(rename = "Row")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub row: Option<String>,
}

impl crate::Metadata<'static> for Placement {
    const JSON_SCHEMA: &'static str = "Resource.v1_12_3.json";
}