redfish_codegen/models/battery/v1_2_1/
charge_state.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ChargeState {
6    /// This value shall indicate the battery is idle and energy is not entering or leaving the battery.  Small amounts of energy may enter or leave the battery while in this state if the battery is regulating itself.
7    Idle,
8    /// This value shall indicate the battery is charging and energy is entering the battery.
9    Charging,
10    /// This value shall indicate the battery is discharging and energy is leaving the battery.
11    Discharging,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for ChargeState {
16     fn default() -> ChargeState {
17        ChargeState::Idle
18     }
19}
20
21impl crate::Metadata<'static> for ChargeState {
22    const JSON_SCHEMA: &'static str = "Battery.v1_2_1.json";
23}