steam_enums/
eprofilecustomizationtype.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 EProfileCustomizationType {
6 Invalid = 0,
7 RareAchievementShowcase = 1,
8 GameCollector = 2,
9 ItemShowcase = 3,
10 TradeShowcase = 4,
11 Badges = 5,
12 FavoriteGame = 6,
13 ScreenshotShowcase = 7,
14 CustomText = 8,
15 FavoriteGroup = 9,
16 Recommendation = 10,
17 WorkshopItem = 11,
18 MyWorkshop = 12,
19 ArtworkShowcase = 13,
20 VideoShowcase = 14,
21 Guides = 15,
22 MyGuides = 16,
23 Achievements = 17,
24 Greenlight = 18,
25 MyGreenlight = 19,
26 Salien = 20,
27 LoyaltyRewardReactions = 21,
28 SingleArtworkShowcase = 22,
29 AchievementsCompletionist = 23,
30 Replay = 24,
31}
32
33impl EProfileCustomizationType {
34 pub fn from_i32(val: i32) -> Option<Self> {
35 match val {
36 x if x == Self::Invalid as i32 => Some(Self::Invalid),
37 x if x == Self::RareAchievementShowcase as i32 => Some(Self::RareAchievementShowcase),
38 x if x == Self::GameCollector as i32 => Some(Self::GameCollector),
39 x if x == Self::ItemShowcase as i32 => Some(Self::ItemShowcase),
40 x if x == Self::TradeShowcase as i32 => Some(Self::TradeShowcase),
41 x if x == Self::Badges as i32 => Some(Self::Badges),
42 x if x == Self::FavoriteGame as i32 => Some(Self::FavoriteGame),
43 x if x == Self::ScreenshotShowcase as i32 => Some(Self::ScreenshotShowcase),
44 x if x == Self::CustomText as i32 => Some(Self::CustomText),
45 x if x == Self::FavoriteGroup as i32 => Some(Self::FavoriteGroup),
46 x if x == Self::Recommendation as i32 => Some(Self::Recommendation),
47 x if x == Self::WorkshopItem as i32 => Some(Self::WorkshopItem),
48 x if x == Self::MyWorkshop as i32 => Some(Self::MyWorkshop),
49 x if x == Self::ArtworkShowcase as i32 => Some(Self::ArtworkShowcase),
50 x if x == Self::VideoShowcase as i32 => Some(Self::VideoShowcase),
51 x if x == Self::Guides as i32 => Some(Self::Guides),
52 x if x == Self::MyGuides as i32 => Some(Self::MyGuides),
53 x if x == Self::Achievements as i32 => Some(Self::Achievements),
54 x if x == Self::Greenlight as i32 => Some(Self::Greenlight),
55 x if x == Self::MyGreenlight as i32 => Some(Self::MyGreenlight),
56 x if x == Self::Salien as i32 => Some(Self::Salien),
57 x if x == Self::LoyaltyRewardReactions as i32 => Some(Self::LoyaltyRewardReactions),
58 x if x == Self::SingleArtworkShowcase as i32 => Some(Self::SingleArtworkShowcase),
59 x if x == Self::AchievementsCompletionist as i32 => Some(Self::AchievementsCompletionist),
60 x if x == Self::Replay as i32 => Some(Self::Replay),
61 _ => None,
62 }
63 }
64}