Skip to main content

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