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 reset a set of resources. For example this could be a list of computer systems.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct ResetRequestBody {
    /// The number of elements in each batch being reset.
    #[serde(rename = "BatchSize")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub batch_size: Option<i64>,
    /// The delay of the batches of elements being reset in seconds.
    #[serde(rename = "DelayBetweenBatchesInSeconds")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub delay_between_batches_in_seconds: Option<i64>,
    #[serde(rename = "ResetType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reset_type: Option<models::resource::ResetType>,
    /// An array of links to the resources being reset.
    #[serde(rename = "TargetURIs")]
    pub target_ur_is: Vec<models::resource::Resource>,
}

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