redfish_codegen/models/resource/v1_5_11/rack_units.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4/// The type of rack unit in use.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum RackUnits {
7 /// Rack units shall be specified in terms of the Open Compute Open Rack Specification.
8 OpenU,
9 /// Rack units shall conform to the EIA-310 standard.
10 #[serde(rename = "EIA_310")]
11 EIA310,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for RackUnits {
16 fn default() -> RackUnits {
17 RackUnits::OpenU
18 }
19}
20
21impl crate::Metadata<'static> for RackUnits {
22 const JSON_SCHEMA: &'static str = "Resource.v1_5_11.json";
23}