redfish-codegen 0.3.1

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


/// The types of calculations that can be applied to the metric reading.  Provides information to the client on the suitability of calculation using the metric reading.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum Calculable {
    /// No calculations should be performed on the metric reading.
    NonCalculatable,
    /// The sum of the metric reading across multiple instances is meaningful.
    Summable,
    /// The sum of the metric reading across multiple instances is not meaningful.
    NonSummable,
}

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

impl crate::Metadata<'static> for Calculable {
    const JSON_SCHEMA: &'static str = "MetricDefinition.v1_3_1.json";
}