redfish-codegen 0.3.1

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


/// The CHAP-specific permission key information for a connection.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CHAPConnectionKey {
    /// The password for CHAP authentication.  The value is `null` in responses.
    #[serde(rename = "CHAPPassword")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub chap_password: Option<String>,
    /// The username for CHAP authentication.
    #[serde(rename = "CHAPUsername")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub chap_username: Option<String>,
    /// The initiator shared secret for mutual (2-way) CHAP authentication.  The value is `null` in responses.
    #[serde(rename = "InitiatorCHAPPassword")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initiator_chap_password: Option<String>,
    /// The initiator username for mutual (2-way) CHAP authentication.
    #[serde(rename = "InitiatorCHAPUsername")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initiator_chap_username: Option<String>,
    /// The target shared secret for mutual (2-way) CHAP authentication.  The value is `null` in responses.
    #[serde(rename = "TargetCHAPPassword")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub target_chap_password: Option<String>,
}

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