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;

/// A stanza contains properties that describe a request to be fulfilled within a manifest.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Stanza {
    /// The OEM-defined type of stanza.
    #[serde(rename = "OEMStanzaType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem_stanza_type: Option<String>,
    #[serde(rename = "Request")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub request: Option<models::manifest::v1_1_0::Request>,
    #[serde(rename = "Response")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub response: Option<models::manifest::v1_1_0::Response>,
    /// The identifier of the stanza.  This is a unique identifier specified by the client and is not used by the service.
    #[serde(rename = "StanzaId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stanza_id: Option<String>,
    #[serde(rename = "StanzaType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stanza_type: Option<models::manifest::v1_1_0::StanzaType>,
}

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