redfish_codegen/models/volume/write_cache_state_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum WriteCacheStateType {
6 /// Indicates that the cache state type in use generally does not protect write requests on non-volatile media.
7 Unprotected,
8 /// Indicates that the cache state type in use generally protects write requests on non-volatile media.
9 Protected,
10 /// Indicates an issue with the cache state in which the cache space is diminished or disabled due to a failure or an outside influence such as a discharged battery.
11 Degraded,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for WriteCacheStateType {
16 fn default() -> WriteCacheStateType {
17 WriteCacheStateType::Unprotected
18 }
19}
20
21impl crate::Metadata<'static> for WriteCacheStateType {
22 const JSON_SCHEMA: &'static str = "Volume.json";
23}