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;

/// Various settings for client certificate authentication such as mTLS or CAC/PIV.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ClientCertificate {
    #[serde(rename = "CertificateMappingAttribute")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub certificate_mapping_attribute: Option<models::account_service::v1_13_0::CertificateMappingAttribute>,
    #[serde(rename = "Certificates")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub certificates: Option<models::odata_v4::IdRef>,
    /// An indication of whether client certificate authentication is enabled.
    #[serde(rename = "Enabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// An indication of whether the service responds to clients that do not successfully authenticate.
    #[serde(rename = "RespondToUnauthenticatedClients")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub respond_to_unauthenticated_clients: Option<bool>,
}

impl crate::Metadata<'static> for ClientCertificate {
    const JSON_SCHEMA: &'static str = "AccountService.v1_13_0.json";
}