redfish_codegen/models/memory/v1_17_1/
scan_media_request_body.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// Scans the media of the memory device.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct ScanMediaRequestBody {
9    /// The length of the target region to scan in bytes from the physical address.
10    #[serde(rename = "Length")]
11    pub length: i64,
12    /// Indicates whether events related to the media scan are not logged.
13    #[serde(rename = "NoEventLog")]
14    #[serde(default, skip_serializing_if = "Option::is_none")]
15    pub no_event_log: Option<bool>,
16    /// The starting device physical address to scan as a hex-encoded string.
17    #[serde(rename = "PhysicalAddress")]
18    pub physical_address: String,
19}
20
21impl crate::Metadata<'static> for ScanMediaRequestBody {
22    const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
23}