redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// The error payload from a Redfish service.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Error {
    pub error: models::redfish::RedfishError,
}

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