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;

/// Identity authentication information about the SPDM Requester and SPDM Responder.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SPDMidentity {
    #[serde(rename = "RequesterAuthentication")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub requester_authentication: Option<models::component_integrity::v1_2_0::SPDMrequesterAuth>,
    #[serde(rename = "ResponderAuthentication")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub responder_authentication: Option<models::component_integrity::v1_2_0::SPDMresponderAuth>,
}

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