redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use redfish_macros::IntoRedfishMessage;

/// This registry defines messages for compute platforms, covering topics related to processor, memory, and I/O device connectivity.
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum Platform {
    /// This message shall be used to indicate that an unhandled exception caused a compute platform to reset.  The exception was detected after the reset occurred.
    #[message(message = "An unhandled exception caused a platform reset.")]
    #[message(id = "Platform.1.0.0.UnhandledExceptionDetectedAfterReset")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check additional diagnostic data if available.")]
    UnhandledExceptionDetectedAfterReset,

    /// This message shall be used to indicate that a platform error occurred.
    #[message(message = "A platform error occurred.")]
    #[message(id = "Platform.1.0.0.PlatformError")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check additional diagnostic data if available.")]
    PlatformError,

    /// This message shall be used to indicate that a platform error occurred with specific device identification information available.
    #[message(message = "A platform error occurred at location '%1'.")]
    #[message(id = "Platform.1.0.0.PlatformErrorAtLocation")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check additional diagnostic data if available.")]
    PlatformErrorAtLocation(
        /// This argument shall contain a description of the device or location where the error occurred.
        String,
    ),
    /// This message shall be used to indicate that an unhandled exception caused a compute platform to crash or otherwise halt.
    #[message(message = "An operating system crash occurred.")]
    #[message(id = "Platform.1.0.0.OperatingSystemCrash")]
    #[message(severity = "crate::models::resource::Health::Critical")]
    #[message(resolution = "Check additional diagnostic data if available.")]
    OperatingSystemCrash,

}