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;

/// The permission key information required to access the target resources for a connection.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ConnectionKey {
    #[serde(rename = "CHAP")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub chap: Option<models::connection::v1_2_0::CHAPConnectionKey>,
    #[serde(rename = "DHCHAP")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dhchap: Option<models::connection::v1_2_0::DHCHAPKey>,
    #[serde(rename = "GenZ")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gen_z: Option<models::connection::v1_2_0::GenZConnectionKey>,
}

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