Skip to main content

steam_enums/
eauthtokenplatformtype.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 EAuthTokenPlatformType {
6    Unknown = 0,
7    SteamClient = 1,
8    WebBrowser = 2,
9    MobileApp = 3,
10}
11
12impl EAuthTokenPlatformType {
13    pub fn from_i32(val: i32) -> Option<Self> {
14        match val {
15            x if x == Self::Unknown as i32 => Some(Self::Unknown),
16            x if x == Self::SteamClient as i32 => Some(Self::SteamClient),
17            x if x == Self::WebBrowser as i32 => Some(Self::WebBrowser),
18            x if x == Self::MobileApp as i32 => Some(Self::MobileApp),
19            _ => None,
20        }
21    }
22}