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)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct RedundantGroup {
    /// The maximum number of devices supported in this redundancy group.
    #[serde(rename = "MaxSupportedInGroup")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_supported_in_group: Option<i64>,
    /// The minimum number of devices needed for this group to be redundant.
    #[serde(rename = "MinNeededInGroup")]
    pub min_needed_in_group: i64,
    /// The links to the devices included in this redundancy group.
    #[serde(rename = "RedundancyGroup")]
    pub redundancy_group: Vec<models::odata_v4::IdRef>,
    #[serde(rename = "RedundancyGroup@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub redundancy_group_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "RedundancyType")]
    pub redundancy_type: models::redundancy::v1_4_1::RedundancyType,
    #[serde(rename = "Status")]
    pub status: models::resource::Status,
}

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