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;

/// The common redundancy definition and structure used in other Redfish schemas.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum Redundancy {
    IdRef(models::odata_v4::IdRef),
    V1_0_10(models::redundancy::v1_0_10::Redundancy),
    V1_1_8(models::redundancy::v1_1_8::Redundancy),
    V1_2_6(models::redundancy::v1_2_6::Redundancy),
    V1_3_6(models::redundancy::v1_3_6::Redundancy),
    V1_4_1(models::redundancy::v1_4_1::Redundancy),
}

#[allow(clippy::derivable_impls)]
impl Default for Redundancy {
     fn default() -> Redundancy {
        Redundancy::IdRef(models::odata_v4::IdRef::default())
     }
}

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