redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum EncryptionStatus {
    /// The drive is not currently encrypted.
    Unecrypted,
    /// The drive is currently encrypted but the data is accessible to the user in unencrypted form.
    Unlocked,
    /// The drive is currently encrypted and the data is not accessible to the user.  However, the system can unlock the drive automatically.
    Locked,
    /// The drive is currently encrypted, the data is not accessible to the user, and the system requires user intervention to expose the data.
    Foreign,
    /// The drive is not currently encrypted. Added in version v1_1_0.
    Unencrypted,
}

#[allow(clippy::derivable_impls)]
impl Default for EncryptionStatus {
     fn default() -> EncryptionStatus {
        EncryptionStatus::Unecrypted
     }
}

impl crate::Metadata<'static> for EncryptionStatus {
    const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json";
}