redfish-codegen 0.3.1

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


/// The DHCHAP-specific permission key information for this connection.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct DHCHAPKey {
    /// The local DHCHAP authentication secret.  The value is `null` in responses.
    #[serde(rename = "LocalDHCHAPAuthSecret")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub local_dhchap_auth_secret: Option<String>,
    /// The peer DHCHAP authentication secret.  The value is `null` in responses.
    #[serde(rename = "PeerDHCHAPAuthSecret")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub peer_dhchap_auth_secret: Option<String>,
}

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