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;

/// NVMe-oF specific properties.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct NVMeoF {
    /// The identifier of the host key paired with this target key.
    #[serde(rename = "HostKeyId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host_key_id: Option<String>,
    /// The NVMe Qualified Name (NQN) of the host or target subsystem associated with this key.
    #[serde(rename = "NQN")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nqn: Option<String>,
    /// The OEM security protocol that this key uses.
    #[serde(rename = "OEMSecurityProtocolType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem_security_protocol_type: Option<String>,
    /// The secure hash algorithms allowed with the usage of this key.
    #[serde(rename = "SecureHashAllowList")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub secure_hash_allow_list: Option<Vec<models::key::v1_2_0::NVMeoFSecureHashType>>,
    #[serde(rename = "SecurityProtocolType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub security_protocol_type: Option<models::key::v1_2_0::NVMeoFSecurityProtocolType>,
}

impl crate::Metadata<'static> for NVMeoF {
    const JSON_SCHEMA: &'static str = "Key.v1_2_0.json";
}