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;

/// This type describes a manifest containing a set of requests to be fulfilled.  The manifest contains a set of stanzas, where each stanza describes a single request.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Manifest {
    /// The description of this manifest.
    #[serde(rename = "Description")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "Expand")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expand: Option<models::manifest::v1_1_0::Expand>,
    /// An array of stanzas that describe the requests specified by this manifest.
    #[serde(rename = "Stanzas")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stanzas: Option<Vec<models::manifest::v1_1_0::Stanza>>,
    /// The date and time when the manifest was created.
    #[serde(rename = "Timestamp")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timestamp: Option<String>,
}

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