redfish_codegen/models/chassis/v1_23_0/
indicator_led.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum IndicatorLED {
6    /// This value shall represent the indicator LED is in an unknown state.  The service shall reject PATCH or PUT requests containing this value by returning the HTTP 400 (Bad Request) status code.
7    Unknown,
8    /// This value shall represent the indicator LED is in a solid on state.  If the service does not support this value, it shall return the HTTP 400 (Bad Request) status code to reject PATCH or PUT requests that contain this value.
9    Lit,
10    /// This value shall represent the indicator LED is in a blinking state where the LED is being turned on and off in repetition.  If the service does not support this value, it shall reject PATCH or PUT requests containing this value by returning the HTTP 400 (Bad Request) status code.
11    Blinking,
12    /// This value shall represent the indicator LED is in a solid off state.  If the service does not support this value, it shall reject PATCH or PUT requests containing this value by returning the HTTP 400 (Bad Request) status code.
13    Off,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for IndicatorLED {
18     fn default() -> IndicatorLED {
19        IndicatorLED::Unknown
20     }
21}
22
23impl crate::Metadata<'static> for IndicatorLED {
24    const JSON_SCHEMA: &'static str = "Chassis.v1_23_0.json";
25}