redfish_codegen/models/memory/v1_17_1/
health_data.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The health data of a memory device.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct HealthData {
9    /// The current health of the memory device as a percentage.
10    #[serde(rename = "PredictedMediaLifeLeftPercent")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub predicted_media_life_left_percent: Option<f64>,
13}
14
15impl crate::Metadata<'static> for HealthData {
16    const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
17}