redfish_codegen/models/resource/v1_5_11/
placement.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The placement within the addressed location.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Placement {
10    /// The name of a rack location within a row.
11    #[serde(rename = "Rack")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub rack: Option<String>,
14    /// The vertical location of the item, in terms of RackOffsetUnits.
15    #[serde(rename = "RackOffset")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub rack_offset: Option<i64>,
18    #[serde(rename = "RackOffsetUnits")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub rack_offset_units: Option<models::resource::v1_5_11::RackUnits>,
21    /// The name of the row.
22    #[serde(rename = "Row")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub row: Option<String>,
25}
26
27impl crate::Metadata<'static> for Placement {
28    const JSON_SCHEMA: &'static str = "Resource.v1_5_11.json";
29}