redfish_codegen/models/storage_controller/v1_0_2/
nvme_smart_critical_warnings.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The NVMe SMART Critical Warnings for a storage controller.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct NVMeSMARTCriticalWarnings {
9    /// Indicates the media has been placed in read only mode.
10    #[serde(rename = "MediaInReadOnly")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub media_in_read_only: Option<bool>,
13    /// Indicates that the NVM subsystem reliability has been compromised.
14    #[serde(rename = "OverallSubsystemDegraded")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub overall_subsystem_degraded: Option<bool>,
17    /// The Persistent Memory Region has become unreliable.
18    #[serde(rename = "PMRUnreliable")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub pmr_unreliable: Option<bool>,
21    /// Indicates that the volatile memory backup device has failed.
22    #[serde(rename = "PowerBackupFailed")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub power_backup_failed: Option<bool>,
25    /// Indicates that the available spare capacity has fallen below the threshold.
26    #[serde(rename = "SpareCapacityWornOut")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub spare_capacity_worn_out: Option<bool>,
29}
30
31impl crate::Metadata<'static> for NVMeSMARTCriticalWarnings {
32    const JSON_SCHEMA: &'static str = "StorageController.v1_0_2.json";
33}