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 SecurityStates {
    /// Secure mode is enabled and access to the data is allowed.
    Enabled,
    /// Secure mode is disabled.
    Disabled,
    /// Secure mode is enabled and access to the data is unlocked.
    Unlocked,
    /// Secure mode is enabled and access to the data is locked.
    Locked,
    /// Secure state is frozen and cannot be modified until reset.
    Frozen,
    /// Number of attempts to unlock the memory exceeded limit.
    Passphraselimit,
}

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

impl crate::Metadata<'static> for SecurityStates {
    const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
}