redfish-codegen 0.3.1

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


/// The security states of a memory device.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SecurityStateInfo {
    /// An indication of whether an incorrect master passphrase attempt count has been reached.
    #[serde(rename = "MasterPassphraseAttemptCountReached")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub master_passphrase_attempt_count_reached: Option<bool>,
    /// An indication of whether an incorrect user passphrase attempt count has been reached.
    #[serde(rename = "UserPassphraseAttemptCountReached")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user_passphrase_attempt_count_reached: Option<bool>,
}

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