redfish_codegen/models/manifest/v1_0_0/
stanza.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// A stanza contains properties that describe a request to be fulfilled within a manifest.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Stanza {
10    /// The OEM-defined type of stanza.
11    #[serde(rename = "OEMStanzaType")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub oem_stanza_type: Option<String>,
14    #[serde(rename = "Request")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub request: Option<models::manifest::v1_0_0::Request>,
17    #[serde(rename = "Response")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub response: Option<models::manifest::v1_0_0::Response>,
20    /// The identifier of the stanza.  This is a unique identifier specified by the client and is not used by the service.
21    #[serde(rename = "StanzaId")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub stanza_id: Option<String>,
24    #[serde(rename = "StanzaType")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub stanza_type: Option<models::manifest::v1_0_0::StanzaType>,
27}
28
29impl crate::Metadata<'static> for Stanza {
30    const JSON_SCHEMA: &'static str = "Manifest.v1_0_0.json";
31}