redfish_codegen/models/resource/v1_16_0/
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    /// This value shall indicate the part is a backplane in an enclosure. Added in version v1_12_0.
16    Backplane,
17    /// This value shall indicate the part is embedded or otherwise permanently incorporated into a larger part or device.  This value shall not be used for parts that can be removed by a user or are considered field-replaceable. Added in version v1_13_0.
18    Embedded,
19}
20
21#[allow(clippy::derivable_impls)]
22impl Default for LocationType {
23     fn default() -> LocationType {
24        LocationType::Slot
25     }
26}
27
28impl crate::Metadata<'static> for LocationType {
29    const JSON_SCHEMA: &'static str = "Resource.v1_16_0.json";
30}