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;

/// The message that the Redfish service returns.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Message {
    /// The human-readable message.
    #[serde(rename = "Message")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    /// An array of message arguments that are substituted for the arguments in the message when looked up in the message registry.
    #[serde(rename = "MessageArgs")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message_args: Option<Vec<String>>,
    /// The identifier for the message.
    #[serde(rename = "MessageId")]
    pub message_id: String,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// A set of properties described by the message.
    #[serde(rename = "RelatedProperties")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub related_properties: Option<Vec<String>>,
    /// Used to provide suggestions on how to resolve the situation that caused the message.
    #[serde(rename = "Resolution")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<String>,
    /// The severity of the message.
    #[serde(rename = "Severity")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub severity: Option<String>,
}

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