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 redundancy information for the devices in a redundancy group.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum RedundantGroup {
    V1_4_1(models::redundancy::v1_4_1::RedundantGroup),
}

#[allow(clippy::derivable_impls)]
impl Default for RedundantGroup {
     fn default() -> RedundantGroup {
        RedundantGroup::V1_4_1(models::redundancy::v1_4_1::RedundantGroup::default())
     }
}

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