Skip to main content

steam_enums/
econtentmoderatorlevel.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 EContentModeratorLevel {
6    Any = 0,
7    Supervisor = 1,
8    Valve = 10,
9    MAX = 11,
10}
11
12impl EContentModeratorLevel {
13    pub fn from_i32(val: i32) -> Option<Self> {
14        match val {
15            x if x == Self::Any as i32 => Some(Self::Any),
16            x if x == Self::Supervisor as i32 => Some(Self::Supervisor),
17            x if x == Self::Valve as i32 => Some(Self::Valve),
18            x if x == Self::MAX as i32 => Some(Self::MAX),
19            _ => None,
20        }
21    }
22}