redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ControlMode {
    /// Automatically adjust control to meet the set point.
    Automatic,
    /// User override of the automatic set point value.
    Override,
    /// No automatic adjustments are made to the control.
    Manual,
    /// The control has been disabled.
    Disabled,
}

#[allow(clippy::derivable_impls)]
impl Default for ControlMode {
     fn default() -> ControlMode {
        ControlMode::Automatic
     }
}

impl crate::Metadata<'static> for ControlMode {
    const JSON_SCHEMA: &'static str = "Control.v1_3_0.json";
}