redfish_codegen/models/resource/v1_6_11/
part_location.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The part location for a resource within an enclosure.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct PartLocation {
10    /// The number that represents the location of the part.  For example, if LocationType is `Slot` and this unit is in slot 2, the LocationOrdinalValue is `2`.
11    #[serde(rename = "LocationOrdinalValue")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub location_ordinal_value: Option<i64>,
14    #[serde(rename = "LocationType")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub location_type: Option<models::resource::v1_6_11::LocationType>,
17    #[serde(rename = "Orientation")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub orientation: Option<models::resource::v1_6_11::Orientation>,
20    #[serde(rename = "Reference")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub reference: Option<models::resource::v1_6_11::Reference>,
23    /// The label of the part location, such as a silk-screened name or a printed label.
24    #[serde(rename = "ServiceLabel")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub service_label: Option<String>,
27}
28
29impl crate::Metadata<'static> for PartLocation {
30    const JSON_SCHEMA: &'static str = "Resource.v1_6_11.json";
31}