redfish-codegen 0.3.1

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

use crate::models;

/// This type contains security capabilities of a memory device.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SecurityCapabilities {
    /// An indication of whether this memory device supports the locking, or freezing, of the configuration.
    #[serde(rename = "ConfigurationLockCapable")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub configuration_lock_capable: Option<bool>,
    /// An indication of whether this memory device supports data locking.
    #[serde(rename = "DataLockCapable")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub data_lock_capable: Option<bool>,
    /// Maximum number of passphrases supported for this memory device.
    #[serde(rename = "MaxPassphraseCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_passphrase_count: Option<i64>,
    /// An indication of whether the memory device is passphrase capable.
    #[serde(rename = "PassphraseCapable")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub passphrase_capable: Option<bool>,
    /// The maximum number of incorrect passphrase attempts allowed before memory device is locked.
    #[serde(rename = "PassphraseLockLimit")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub passphrase_lock_limit: Option<i64>,
    /// Security states supported by the memory device.
    #[serde(rename = "SecurityStates")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub security_states: Option<Vec<models::memory::v1_17_1::SecurityStates>>,
}

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