steam_enums/
eprofilecustomizationstyle.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 EProfileCustomizationStyle {
6 Default = 0,
7 Selected = 1,
8 Rarest = 2,
9 MostRecent = 3,
10 Random = 4,
11 HighestRated = 5,
12}
13
14impl EProfileCustomizationStyle {
15 pub fn from_i32(val: i32) -> Option<Self> {
16 match val {
17 x if x == Self::Default as i32 => Some(Self::Default),
18 x if x == Self::Selected as i32 => Some(Self::Selected),
19 x if x == Self::Rarest as i32 => Some(Self::Rarest),
20 x if x == Self::MostRecent as i32 => Some(Self::MostRecent),
21 x if x == Self::Random as i32 => Some(Self::Random),
22 x if x == Self::HighestRated as i32 => Some(Self::HighestRated),
23 _ => None,
24 }
25 }
26}