redfish_codegen/models/resource/v1_6_11/
location_type.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The types of locations for a part within an enclosure.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6pub enum LocationType {
7    /// This value shall indicate the part is located in a slot.
8    Slot,
9    /// This value shall indicate the part is located in a bay.
10    Bay,
11    /// This value shall indicate the part is located in a connector or port.
12    Connector,
13    /// This value shall indicate the part is located in a socket.
14    Socket,
15}
16
17#[allow(clippy::derivable_impls)]
18impl Default for LocationType {
19     fn default() -> LocationType {
20        LocationType::Slot
21     }
22}
23
24impl crate::Metadata<'static> for LocationType {
25    const JSON_SCHEMA: &'static str = "Resource.v1_6_11.json";
26}