redfish_codegen/models/log_entry/v1_15_0/
cper.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// Details for a CPER section or record associated with a log entry.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct CPER {
10    /// The CPER Notification Type for a CPER record.
11    #[serde(rename = "NotificationType")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub notification_type: Option<String>,
14    #[serde(rename = "Oem")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub oem: Option<models::resource::Oem>,
17    /// The CPER Section Type.
18    #[serde(rename = "SectionType")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub section_type: Option<String>,
21}
22
23impl crate::Metadata<'static> for CPER {
24    const JSON_SCHEMA: &'static str = "LogEntry.v1_15_0.json";
25}