redfish_codegen/models/memory/v1_17_1/security_states.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum SecurityStates {
6 /// Secure mode is enabled and access to the data is allowed.
7 Enabled,
8 /// Secure mode is disabled.
9 Disabled,
10 /// Secure mode is enabled and access to the data is unlocked.
11 Unlocked,
12 /// Secure mode is enabled and access to the data is locked.
13 Locked,
14 /// Secure state is frozen and cannot be modified until reset.
15 Frozen,
16 /// Number of attempts to unlock the memory exceeded limit.
17 Passphraselimit,
18}
19
20#[allow(clippy::derivable_impls)]
21impl Default for SecurityStates {
22 fn default() -> SecurityStates {
23 SecurityStates::Enabled
24 }
25}
26
27impl crate::Metadata<'static> for SecurityStates {
28 const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
29}