steam-enums 0.1.2

Steam protocol enumerations (EResult, EMsg, EAccountType, etc.) for Rust.
Documentation
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EHDRToneMapOperator {
    Invalid = 0,
    Uncharted = 1,
    Reinhard = 2,
}

impl EHDRToneMapOperator {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Invalid as i32 => Some(Self::Invalid),
            x if x == Self::Uncharted as i32 => Some(Self::Uncharted),
            x if x == Self::Reinhard as i32 => Some(Self::Reinhard),
            _ => None,
        }
    }
}