redfish_codegen/models/drive/v1_17_0/data_sanitization_type.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum DataSanitizationType {
6 /// This value shall indicate sanitization is performed by deleting all logical block addresses, including those that are not currently mapping to active addresses, but leaving the data on the drive.
7 BlockErase,
8 /// This value shall indicate sanitization is performed by erasing the target data's encryption key leaving only the ciphertext on the drive. For more information, see NIST800-88 and ISO/IEC 27040.
9 CryptographicErase,
10 /// This value shall indicate sanitization is performed by overwriting data by writing an implementation specific pattern onto all sectors of the drive.
11 Overwrite,
12}
13
14#[allow(clippy::derivable_impls)]
15impl Default for DataSanitizationType {
16 fn default() -> DataSanitizationType {
17 DataSanitizationType::BlockErase
18 }
19}
20
21impl crate::Metadata<'static> for DataSanitizationType {
22 const JSON_SCHEMA: &'static str = "Drive.v1_17_0.json";
23}