// Generated by redfish-codegen. Do not modify.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ChargeState {
/// 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.
Idle,
/// This value shall indicate the battery is charging and energy is entering the battery.
Charging,
/// This value shall indicate the battery is discharging and energy is leaving the battery.
Discharging,
}
#[allow(clippy::derivable_impls)]
impl Default for ChargeState {
fn default() -> ChargeState {
ChargeState::Idle
}
}
impl crate::Metadata<'static> for ChargeState {
const JSON_SCHEMA: &'static str = "Battery.v1_2_0.json";
}