redfish-codegen 0.3.1

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

use crate::models;

#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum SensorPumpExcerpt {
    V1_2_3(models::sensor::v1_2_3::SensorPumpExcerpt),
    V1_3_3(models::sensor::v1_3_3::SensorPumpExcerpt),
    V1_4_2(models::sensor::v1_4_2::SensorPumpExcerpt),
    V1_5_1(models::sensor::v1_5_1::SensorPumpExcerpt),
    V1_6_1(models::sensor::v1_6_1::SensorPumpExcerpt),
    V1_7_0(models::sensor::v1_7_0::SensorPumpExcerpt),
}

#[allow(clippy::derivable_impls)]
impl Default for SensorPumpExcerpt {
     fn default() -> SensorPumpExcerpt {
        SensorPumpExcerpt::V1_2_3(models::sensor::v1_2_3::SensorPumpExcerpt::default())
     }
}

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