Skip to main content

steam_enums/
ethumbnailformat.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 EThumbnailFormat {
6    JPEG = 1,
7    RGB = 2,
8}
9
10impl EThumbnailFormat {
11    pub fn from_i32(val: i32) -> Option<Self> {
12        match val {
13            x if x == Self::JPEG as i32 => Some(Self::JPEG),
14            x if x == Self::RGB as i32 => Some(Self::RGB),
15            _ => None,
16        }
17    }
18}