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 EncryptionMode {
    /// Encryption is disabled on the storage subsystem.
    Disabled,
    /// The storage subsystem uses one or more external keys for encryption.
    UseExternalKey,
    /// The storage subsystem uses a local key for encryption.
    UseLocalKey,
}

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

impl crate::Metadata<'static> for EncryptionMode {
    const JSON_SCHEMA: &'static str = "Storage.v1_14_0.json";
}