redfish_codegen/models/memory/v1_17_1/error_correction.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ErrorCorrection {
6 /// No ECC available.
7 NoECC,
8 /// Single bit data errors can be corrected by ECC.
9 SingleBitECC,
10 /// Multibit data errors can be corrected by ECC.
11 MultiBitECC,
12 /// Address parity errors can be corrected.
13 AddressParity,
14}
15
16#[allow(clippy::derivable_impls)]
17impl Default for ErrorCorrection {
18 fn default() -> ErrorCorrection {
19 ErrorCorrection::NoECC
20 }
21}
22
23impl crate::Metadata<'static> for ErrorCorrection {
24 const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
25}