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;

/// Details for a CPER section or record associated with a log entry.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CPER {
    /// The CPER Notification Type for a CPER record.
    #[serde(rename = "NotificationType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub notification_type: Option<String>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The CPER Section Type.
    #[serde(rename = "SectionType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub section_type: Option<String>,
}

impl crate::Metadata<'static> for CPER {
    const JSON_SCHEMA: &'static str = "LogEntry.v1_15_0.json";
}