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 properties that describe an error from a Redfish service.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct RedfishError {
    /// An array of messages describing one or more error messages.
    #[serde(rename = "@Message.ExtendedInfo")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message_extended_info: Option<Vec<models::message::v1_1_2::Message>>,
    /// A string indicating a specific MessageId from a message registry.
    pub code: String,
    /// A human-readable error message corresponding to the message in a message registry.
    pub message: String,
}

impl crate::Metadata<'static> for RedfishError {
    const JSON_SCHEMA: &'static str = "redfish-error.v1_0_1.json";
}