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 TLS client and server policies.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct TLSCommunication {
    #[serde(rename = "Client")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub client: Option<models::security_policy::v1_0_0::TLSPolicy>,
    #[serde(rename = "Server")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub server: Option<models::security_policy::v1_0_0::TLSPolicy>,
}

impl crate::Metadata<'static> for TLSCommunication {
    const JSON_SCHEMA: &'static str = "SecurityPolicy.v1_0_0.json";
}