redfish_codegen/models/connection/v1_2_0/
chap_connection_key.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The CHAP-specific permission key information for a connection.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct CHAPConnectionKey {
9    /// The password for CHAP authentication.  The value is `null` in responses.
10    #[serde(rename = "CHAPPassword")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub chap_password: Option<String>,
13    /// The username for CHAP authentication.
14    #[serde(rename = "CHAPUsername")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub chap_username: Option<String>,
17    /// The initiator shared secret for mutual (2-way) CHAP authentication.  The value is `null` in responses.
18    #[serde(rename = "InitiatorCHAPPassword")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub initiator_chap_password: Option<String>,
21    /// The initiator username for mutual (2-way) CHAP authentication.
22    #[serde(rename = "InitiatorCHAPUsername")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub initiator_chap_username: Option<String>,
25    /// The target shared secret for mutual (2-way) CHAP authentication.  The value is `null` in responses.
26    #[serde(rename = "TargetCHAPPassword")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub target_chap_password: Option<String>,
29}
30
31impl crate::Metadata<'static> for CHAPConnectionKey {
32    const JSON_SCHEMA: &'static str = "Connection.v1_2_0.json";
33}