redfish_codegen/models/drive/v1_17_0/
encryption_status.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum EncryptionStatus {
6    /// The drive is not currently encrypted.
7    Unecrypted,
8    /// The drive is currently encrypted but the data is accessible to the user in unencrypted form.
9    Unlocked,
10    /// The drive is currently encrypted and the data is not accessible to the user.  However, the system can unlock the drive automatically.
11    Locked,
12    /// The drive is currently encrypted, the data is not accessible to the user, and the system requires user intervention to expose the data.
13    Foreign,
14    /// The drive is not currently encrypted. Added in version v1_1_0.
15    Unencrypted,
16}
17
18#[allow(clippy::derivable_impls)]
19impl Default for EncryptionStatus {
20     fn default() -> EncryptionStatus {
21        EncryptionStatus::Unecrypted
22     }
23}
24
25impl crate::Metadata<'static> for EncryptionStatus {
26    const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json";
27}