Skip to main content

steam_enums/
econtentreportresolution.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 EContentReportResolution {
6    Unresolved = 0,
7    Acquitted = 1,
8    Removed = 2,
9    Relabelled = 3,
10    Suspicious = 4,
11    HarassmentStrike = 5,
12    Purged = 6,
13    DisconnectedFromApp = 7,
14    SuspiciousIncludingUpvoters = 8,
15    VisibilityChanged = 9,
16    CountryRestrictionsChanged = 10,
17    RemoveAndWarn = 11,
18    RemoveAndBan = 12,
19    RemoveAndKick = 13,
20    MAX = 14,
21}
22
23impl EContentReportResolution {
24    pub fn from_i32(val: i32) -> Option<Self> {
25        match val {
26            x if x == Self::Unresolved as i32 => Some(Self::Unresolved),
27            x if x == Self::Acquitted as i32 => Some(Self::Acquitted),
28            x if x == Self::Removed as i32 => Some(Self::Removed),
29            x if x == Self::Relabelled as i32 => Some(Self::Relabelled),
30            x if x == Self::Suspicious as i32 => Some(Self::Suspicious),
31            x if x == Self::HarassmentStrike as i32 => Some(Self::HarassmentStrike),
32            x if x == Self::Purged as i32 => Some(Self::Purged),
33            x if x == Self::DisconnectedFromApp as i32 => Some(Self::DisconnectedFromApp),
34            x if x == Self::SuspiciousIncludingUpvoters as i32 => Some(Self::SuspiciousIncludingUpvoters),
35            x if x == Self::VisibilityChanged as i32 => Some(Self::VisibilityChanged),
36            x if x == Self::CountryRestrictionsChanged as i32 => Some(Self::CountryRestrictionsChanged),
37            x if x == Self::RemoveAndWarn as i32 => Some(Self::RemoveAndWarn),
38            x if x == Self::RemoveAndBan as i32 => Some(Self::RemoveAndBan),
39            x if x == Self::RemoveAndKick as i32 => Some(Self::RemoveAndKick),
40            x if x == Self::MAX as i32 => Some(Self::MAX),
41            _ => None,
42        }
43    }
44}