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 ControlSingleExcerpt {
    V1_0_1(models::control::v1_0_1::ControlSingleExcerpt),
    V1_1_0(models::control::v1_1_0::ControlSingleExcerpt),
    V1_2_0(models::control::v1_2_0::ControlSingleExcerpt),
    V1_3_0(models::control::v1_3_0::ControlSingleExcerpt),
}

#[allow(clippy::derivable_impls)]
impl Default for ControlSingleExcerpt {
     fn default() -> ControlSingleExcerpt {
        ControlSingleExcerpt::V1_0_1(models::control::v1_0_1::ControlSingleExcerpt::default())
     }
}

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