#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EStorageBlockContentType {
Invalid = 0,
Unknown = 1,
FileSystem = 2,
Crypto = 3,
Raid = 4,
}
impl EStorageBlockContentType {
pub fn from_i32(val: i32) -> Option<Self> {
match val {
x if x == Self::Invalid as i32 => Some(Self::Invalid),
x if x == Self::Unknown as i32 => Some(Self::Unknown),
x if x == Self::FileSystem as i32 => Some(Self::FileSystem),
x if x == Self::Crypto as i32 => Some(Self::Crypto),
x if x == Self::Raid as i32 => Some(Self::Raid),
_ => None,
}
}
}