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 status and health of a resource and its children.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Status {
    /// Conditions in this resource that require attention.
    #[serde(rename = "Conditions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub conditions: Option<Vec<models::resource::Condition>>,
    #[serde(rename = "Health")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub health: Option<models::resource::Health>,
    #[serde(rename = "HealthRollup")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub health_rollup: Option<models::resource::Health>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "State")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<models::resource::State>,
}

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