redfish_codegen/models/resource/
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 that the indicator LED is in a solid on 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.
7    Lit,
8    /// This value shall represent that 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.
9    Blinking,
10    /// This value shall represent that 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.
11    Off,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for IndicatorLED {
16     fn default() -> IndicatorLED {
17        IndicatorLED::Lit
18     }
19}
20
21impl crate::Metadata<'static> for IndicatorLED {
22    const JSON_SCHEMA: &'static str = "Resource.json";
23}