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 ThresholdActivation {
    /// This threshold is activated when the reading changes from a value lower than the threshold to a value higher than the threshold.
    Increasing,
    /// This threshold is activated when the reading changes from a value higher than the threshold to a value lower than the threshold.
    Decreasing,
    /// This threshold is activated when either the increasing or decreasing conditions are met.
    Either,
}

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

impl crate::Metadata<'static> for ThresholdActivation {
    const JSON_SCHEMA: &'static str = "Sensor.v1_6_0.json";
}