redfish_codegen/models/resource/v1_16_0/orientation.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// The orientations for the ordering of the part location ordinal value.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum Orientation {
7 /// This value shall indicate the ordering for LocationOrdinalValue is front to back.
8 FrontToBack,
9 /// This value shall indicate the ordering for LocationOrdinalValue is back to front.
10 #[serde(rename = "BackToFront")]
11 BackToF,
12 /// This value shall indicate the ordering for LocationOrdinalValue is top to bottom.
13 TopToBottom,
14 /// This value shall indicate the ordering for LocationOrdinalValue is bottom to top.
15 BottomToTop,
16 /// This value shall indicate the ordering for LocationOrdinalValue is left to right.
17 LeftToRight,
18 /// This value shall indicate the ordering for LocationOrdinalValue is right to left.
19 RightToLeft,
20}
21
22#[allow(clippy::derivable_impls)]
23impl Default for Orientation {
24 fn default() -> Orientation {
25 Orientation::FrontToBack
26 }
27}
28
29impl crate::Metadata<'static> for Orientation {
30 const JSON_SCHEMA: &'static str = "Resource.v1_16_0.json";
31}