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 securely erases the contents of the drive.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SecureEraseRequestBody {
    /// The number of times to overwrite the drive if performing an overwrite type of sanitization.
    #[serde(rename = "OverwritePasses")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub overwrite_passes: Option<i64>,
    #[serde(rename = "SanitizationType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sanitization_type: Option<models::drive::v1_17_0::DataSanitizationType>,
}

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