redfish_codegen/models/resource/v1_5_11/reference.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// The reference areas for the location of the part within an enclosure.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum Reference {
7 /// This value shall indicate the part is in the top of the unit.
8 Top,
9 /// This value shall indicate the part is in the bottom of the unit.
10 Bottom,
11 /// This value shall indicate the part is in the front of the unit.
12 Front,
13 /// This value shall indicate the part is in the rear of the unit.
14 Rear,
15 /// This value shall indicate the part is on the left side of of the unit.
16 Left,
17 /// This value shall indicate the part is on the right side of the unit.
18 Right,
19 /// This value shall indicate the part is in the middle of the unit.
20 Middle,
21}
22
23#[allow(clippy::derivable_impls)]
24impl Default for Reference {
25 fn default() -> Reference {
26 Reference::Top
27 }
28}
29
30impl crate::Metadata<'static> for Reference {
31 const JSON_SCHEMA: &'static str = "Resource.v1_5_11.json";
32}