Skip to main content

steam_enums/
eservertype.rs

1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EServerType {
6    CEconBase = -5,
7    CServer = -4,
8    Client_Neg3 = -3,
9    Util_Neg2 = -2,
10    Invalid = -1,
11    First = 0,
12    GM = 1,
13    BUM = 2,
14    AM = 3,
15    BS = 4,
16    VS = 5,
17    ATS = 6,
18    CM = 7,
19    FBS = 8,
20    BoxMonitor = 9,
21    SS = 10,
22    DRMS = 11,
23    HubOBSOLETE = 12,
24    Console = 13,
25    ASBOBSOLETE = 14,
26    Client_15 = 15,
27    BootstrapOBSOLETE = 16,
28    DP = 17,
29    WG = 18,
30    SM = 19,
31    SLC = 20,
32    UFS = 21,
33    Util_23 = 23,
34    Community = 24,
35    P2PRelayOBSOLETE = 25,
36    AppInformation = 26,
37    Spare = 27,
38    FTS = 28,
39    EPM = 29,
40    PS = 30,
41    IS = 31,
42    CCS = 32,
43    DFS = 33,
44    LBS = 34,
45    MDS = 35,
46    CS = 36,
47    GC = 37,
48    NS = 38,
49    OGS = 39,
50    WebAPI = 40,
51    UDS = 41,
52    MMS = 42,
53    GMS = 43,
54    KGS = 44,
55    UCM = 45,
56    RM = 46,
57    FS = 47,
58    Econ = 48,
59    Backpack = 49,
60    UGS = 50,
61    StoreFeature = 51,
62    MoneyStats = 52,
63    CRE = 53,
64    UMQ = 54,
65    Workshop = 55,
66    BRP = 56,
67    GCH = 57,
68    MPAS = 58,
69    Trade = 59,
70    Secrets = 60,
71    Logsink = 61,
72    Market = 62,
73    Quest = 63,
74    WDS = 64,
75    ACS = 65,
76    PNP = 66,
77    TaxForm = 67,
78    ExternalMonitor = 68,
79    Parental = 69,
80    PartnerUpload = 70,
81    Partner = 71,
82    ES = 72,
83    DepotWebContent = 73,
84    ExternalConfig = 74,
85    GameNotifications = 75,
86    MarketRepl = 76,
87    MarketSearch = 77,
88    Localization = 78,
89    Steam2Emulator = 79,
90    PublicTest = 80,
91    SolrMgr = 81,
92    BroadcastIngester = 82,
93    BroadcastDirectory = 83,
94    VideoManager = 84,
95    TradeOffer = 85,
96    BroadcastChat = 86,
97    Phone = 87,
98    AccountScore = 88,
99    Support = 89,
100    LogRequest = 90,
101    LogWorker = 91,
102    EmailDelivery = 92,
103    InventoryManagement = 93,
104    Auth = 94,
105    StoreCatalog = 95,
106    HLTVRelay = 96,
107    IDLS = 97,
108    Perf = 98,
109    ItemInventory = 99,
110    Watchdog = 100,
111    AccountHistory = 101,
112    Chat = 102,
113    Shader = 103,
114    AccountHardware = 104,
115    WebRTC = 105,
116    Giveaway = 106,
117    ChatRoom = 107,
118    VoiceChat = 108,
119    QMS = 109,
120    Trust = 110,
121    TimeMachine = 111,
122    VACDBMaster = 112,
123    ContentServerConfig = 113,
124    Minigame = 114,
125    MLTrain = 115,
126    VACTest = 116,
127    TaxService = 117,
128    MLInference = 118,
129    UGSAggregate = 119,
130    TURN = 120,
131    RemoteClient = 121,
132    BroadcastOrigin = 122,
133    BroadcastChannel = 123,
134    SteamAR = 124,
135    China = 125,
136    CrashDump = 126,
137}
138
139impl EServerType {
140    pub fn from_i32(val: i32) -> Option<Self> {
141        match val {
142            x if x == Self::CEconBase as i32 => Some(Self::CEconBase),
143            x if x == Self::CServer as i32 => Some(Self::CServer),
144            x if x == Self::Client_Neg3 as i32 => Some(Self::Client_Neg3),
145            x if x == Self::Util_Neg2 as i32 => Some(Self::Util_Neg2),
146            x if x == Self::Invalid as i32 => Some(Self::Invalid),
147            x if x == Self::First as i32 => Some(Self::First),
148            x if x == Self::GM as i32 => Some(Self::GM),
149            x if x == Self::BUM as i32 => Some(Self::BUM),
150            x if x == Self::AM as i32 => Some(Self::AM),
151            x if x == Self::BS as i32 => Some(Self::BS),
152            x if x == Self::VS as i32 => Some(Self::VS),
153            x if x == Self::ATS as i32 => Some(Self::ATS),
154            x if x == Self::CM as i32 => Some(Self::CM),
155            x if x == Self::FBS as i32 => Some(Self::FBS),
156            x if x == Self::BoxMonitor as i32 => Some(Self::BoxMonitor),
157            x if x == Self::SS as i32 => Some(Self::SS),
158            x if x == Self::DRMS as i32 => Some(Self::DRMS),
159            x if x == Self::HubOBSOLETE as i32 => Some(Self::HubOBSOLETE),
160            x if x == Self::Console as i32 => Some(Self::Console),
161            x if x == Self::ASBOBSOLETE as i32 => Some(Self::ASBOBSOLETE),
162            x if x == Self::Client_15 as i32 => Some(Self::Client_15),
163            x if x == Self::BootstrapOBSOLETE as i32 => Some(Self::BootstrapOBSOLETE),
164            x if x == Self::DP as i32 => Some(Self::DP),
165            x if x == Self::WG as i32 => Some(Self::WG),
166            x if x == Self::SM as i32 => Some(Self::SM),
167            x if x == Self::SLC as i32 => Some(Self::SLC),
168            x if x == Self::UFS as i32 => Some(Self::UFS),
169            x if x == Self::Util_23 as i32 => Some(Self::Util_23),
170            x if x == Self::Community as i32 => Some(Self::Community),
171            x if x == Self::P2PRelayOBSOLETE as i32 => Some(Self::P2PRelayOBSOLETE),
172            x if x == Self::AppInformation as i32 => Some(Self::AppInformation),
173            x if x == Self::Spare as i32 => Some(Self::Spare),
174            x if x == Self::FTS as i32 => Some(Self::FTS),
175            x if x == Self::EPM as i32 => Some(Self::EPM),
176            x if x == Self::PS as i32 => Some(Self::PS),
177            x if x == Self::IS as i32 => Some(Self::IS),
178            x if x == Self::CCS as i32 => Some(Self::CCS),
179            x if x == Self::DFS as i32 => Some(Self::DFS),
180            x if x == Self::LBS as i32 => Some(Self::LBS),
181            x if x == Self::MDS as i32 => Some(Self::MDS),
182            x if x == Self::CS as i32 => Some(Self::CS),
183            x if x == Self::GC as i32 => Some(Self::GC),
184            x if x == Self::NS as i32 => Some(Self::NS),
185            x if x == Self::OGS as i32 => Some(Self::OGS),
186            x if x == Self::WebAPI as i32 => Some(Self::WebAPI),
187            x if x == Self::UDS as i32 => Some(Self::UDS),
188            x if x == Self::MMS as i32 => Some(Self::MMS),
189            x if x == Self::GMS as i32 => Some(Self::GMS),
190            x if x == Self::KGS as i32 => Some(Self::KGS),
191            x if x == Self::UCM as i32 => Some(Self::UCM),
192            x if x == Self::RM as i32 => Some(Self::RM),
193            x if x == Self::FS as i32 => Some(Self::FS),
194            x if x == Self::Econ as i32 => Some(Self::Econ),
195            x if x == Self::Backpack as i32 => Some(Self::Backpack),
196            x if x == Self::UGS as i32 => Some(Self::UGS),
197            x if x == Self::StoreFeature as i32 => Some(Self::StoreFeature),
198            x if x == Self::MoneyStats as i32 => Some(Self::MoneyStats),
199            x if x == Self::CRE as i32 => Some(Self::CRE),
200            x if x == Self::UMQ as i32 => Some(Self::UMQ),
201            x if x == Self::Workshop as i32 => Some(Self::Workshop),
202            x if x == Self::BRP as i32 => Some(Self::BRP),
203            x if x == Self::GCH as i32 => Some(Self::GCH),
204            x if x == Self::MPAS as i32 => Some(Self::MPAS),
205            x if x == Self::Trade as i32 => Some(Self::Trade),
206            x if x == Self::Secrets as i32 => Some(Self::Secrets),
207            x if x == Self::Logsink as i32 => Some(Self::Logsink),
208            x if x == Self::Market as i32 => Some(Self::Market),
209            x if x == Self::Quest as i32 => Some(Self::Quest),
210            x if x == Self::WDS as i32 => Some(Self::WDS),
211            x if x == Self::ACS as i32 => Some(Self::ACS),
212            x if x == Self::PNP as i32 => Some(Self::PNP),
213            x if x == Self::TaxForm as i32 => Some(Self::TaxForm),
214            x if x == Self::ExternalMonitor as i32 => Some(Self::ExternalMonitor),
215            x if x == Self::Parental as i32 => Some(Self::Parental),
216            x if x == Self::PartnerUpload as i32 => Some(Self::PartnerUpload),
217            x if x == Self::Partner as i32 => Some(Self::Partner),
218            x if x == Self::ES as i32 => Some(Self::ES),
219            x if x == Self::DepotWebContent as i32 => Some(Self::DepotWebContent),
220            x if x == Self::ExternalConfig as i32 => Some(Self::ExternalConfig),
221            x if x == Self::GameNotifications as i32 => Some(Self::GameNotifications),
222            x if x == Self::MarketRepl as i32 => Some(Self::MarketRepl),
223            x if x == Self::MarketSearch as i32 => Some(Self::MarketSearch),
224            x if x == Self::Localization as i32 => Some(Self::Localization),
225            x if x == Self::Steam2Emulator as i32 => Some(Self::Steam2Emulator),
226            x if x == Self::PublicTest as i32 => Some(Self::PublicTest),
227            x if x == Self::SolrMgr as i32 => Some(Self::SolrMgr),
228            x if x == Self::BroadcastIngester as i32 => Some(Self::BroadcastIngester),
229            x if x == Self::BroadcastDirectory as i32 => Some(Self::BroadcastDirectory),
230            x if x == Self::VideoManager as i32 => Some(Self::VideoManager),
231            x if x == Self::TradeOffer as i32 => Some(Self::TradeOffer),
232            x if x == Self::BroadcastChat as i32 => Some(Self::BroadcastChat),
233            x if x == Self::Phone as i32 => Some(Self::Phone),
234            x if x == Self::AccountScore as i32 => Some(Self::AccountScore),
235            x if x == Self::Support as i32 => Some(Self::Support),
236            x if x == Self::LogRequest as i32 => Some(Self::LogRequest),
237            x if x == Self::LogWorker as i32 => Some(Self::LogWorker),
238            x if x == Self::EmailDelivery as i32 => Some(Self::EmailDelivery),
239            x if x == Self::InventoryManagement as i32 => Some(Self::InventoryManagement),
240            x if x == Self::Auth as i32 => Some(Self::Auth),
241            x if x == Self::StoreCatalog as i32 => Some(Self::StoreCatalog),
242            x if x == Self::HLTVRelay as i32 => Some(Self::HLTVRelay),
243            x if x == Self::IDLS as i32 => Some(Self::IDLS),
244            x if x == Self::Perf as i32 => Some(Self::Perf),
245            x if x == Self::ItemInventory as i32 => Some(Self::ItemInventory),
246            x if x == Self::Watchdog as i32 => Some(Self::Watchdog),
247            x if x == Self::AccountHistory as i32 => Some(Self::AccountHistory),
248            x if x == Self::Chat as i32 => Some(Self::Chat),
249            x if x == Self::Shader as i32 => Some(Self::Shader),
250            x if x == Self::AccountHardware as i32 => Some(Self::AccountHardware),
251            x if x == Self::WebRTC as i32 => Some(Self::WebRTC),
252            x if x == Self::Giveaway as i32 => Some(Self::Giveaway),
253            x if x == Self::ChatRoom as i32 => Some(Self::ChatRoom),
254            x if x == Self::VoiceChat as i32 => Some(Self::VoiceChat),
255            x if x == Self::QMS as i32 => Some(Self::QMS),
256            x if x == Self::Trust as i32 => Some(Self::Trust),
257            x if x == Self::TimeMachine as i32 => Some(Self::TimeMachine),
258            x if x == Self::VACDBMaster as i32 => Some(Self::VACDBMaster),
259            x if x == Self::ContentServerConfig as i32 => Some(Self::ContentServerConfig),
260            x if x == Self::Minigame as i32 => Some(Self::Minigame),
261            x if x == Self::MLTrain as i32 => Some(Self::MLTrain),
262            x if x == Self::VACTest as i32 => Some(Self::VACTest),
263            x if x == Self::TaxService as i32 => Some(Self::TaxService),
264            x if x == Self::MLInference as i32 => Some(Self::MLInference),
265            x if x == Self::UGSAggregate as i32 => Some(Self::UGSAggregate),
266            x if x == Self::TURN as i32 => Some(Self::TURN),
267            x if x == Self::RemoteClient as i32 => Some(Self::RemoteClient),
268            x if x == Self::BroadcastOrigin as i32 => Some(Self::BroadcastOrigin),
269            x if x == Self::BroadcastChannel as i32 => Some(Self::BroadcastChannel),
270            x if x == Self::SteamAR as i32 => Some(Self::SteamAR),
271            x if x == Self::China as i32 => Some(Self::China),
272            x if x == Self::CrashDump as i32 => Some(Self::CrashDump),
273            _ => None,
274        }
275    }
276}