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 is used to prepare the contents of the volume for use by the system. If InitializeMethod is not specified in the request body, but the property InitializeMethod is specified, the property InitializeMethod value should be used. If neither is specified, the InitializeMethod should be Foreground.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct InitializeRequestBody {
    #[serde(rename = "InitializeMethod")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initialize_method: Option<models::volume::InitializeMethod>,
    #[serde(rename = "InitializeType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub initialize_type: Option<models::volume::InitializeType>,
}

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