redfish-codegen 0.3.1

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


/// The Gen-Z-specific permission key information for a connection.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct GenZConnectionKey {
    /// The Access Key for this connection.
    #[serde(rename = "AccessKey")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub access_key: Option<String>,
    /// Indicates whether Region Key domain checking is enabled for this connection.
    #[serde(rename = "RKeyDomainCheckingEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub r_key_domain_checking_enabled: Option<bool>,
    /// The read-only Region Key for this connection.
    #[serde(rename = "RKeyReadOnlyKey")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub r_key_read_only_key: Option<String>,
    /// The read-write Region Key for this connection.
    #[serde(rename = "RKeyReadWriteKey")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub r_key_read_write_key: Option<String>,
}

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