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 action performs a set of operations specified by a manifest.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ComposeRequestBody {
    #[serde(rename = "Manifest")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manifest: Option<models::manifest::Manifest>,
    #[serde(rename = "RequestFormat")]
    pub request_format: models::composition_service::v1_2_0::ComposeRequestFormat,
    #[serde(rename = "RequestType")]
    pub request_type: models::composition_service::v1_2_0::ComposeRequestType,
    /// The identifier of the composition reservation if applying a reservation.  The value for this parameter is obtained from the response of a Compose action where the RequestType parameter contains the value `PreviewReserve`.
    #[serde(rename = "ReservationId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reservation_id: Option<String>,
}

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