redfish_codegen/models/resource/
health.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum Health {
6    /// Normal.
7    OK,
8    /// A condition requires attention.
9    Warning,
10    /// A critical condition requires immediate attention.
11    Critical,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for Health {
16     fn default() -> Health {
17        Health::OK
18     }
19}
20
21impl crate::Metadata<'static> for Health {
22    const JSON_SCHEMA: &'static str = "Resource.json";
23}