steam_enums/
estorageblockcontenttype.rs1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EStorageBlockContentType {
6 Invalid = 0,
7 Unknown = 1,
8 FileSystem = 2,
9 Crypto = 3,
10 Raid = 4,
11}
12
13impl EStorageBlockContentType {
14 pub fn from_i32(val: i32) -> Option<Self> {
15 match val {
16 x if x == Self::Invalid as i32 => Some(Self::Invalid),
17 x if x == Self::Unknown as i32 => Some(Self::Unknown),
18 x if x == Self::FileSystem as i32 => Some(Self::FileSystem),
19 x if x == Self::Crypto as i32 => Some(Self::Crypto),
20 x if x == Self::Raid as i32 => Some(Self::Raid),
21 _ => None,
22 }
23 }
24}