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 EBaseClientMessages {
    CustomGameEvent = 280,
    CustomGameEventBounce = 281,
    ClientUIEvent = 282,
    DevPaletteVisibilityChanged = 283,
    WorldUIControllerHasPanelChanged = 284,
    RotateAnchor = 285,
    ListenForResponseFound = 286,
    MAX_BASE = 300,
}

impl EBaseClientMessages {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::CustomGameEvent as i32 => Some(Self::CustomGameEvent),
            x if x == Self::CustomGameEventBounce as i32 => Some(Self::CustomGameEventBounce),
            x if x == Self::ClientUIEvent as i32 => Some(Self::ClientUIEvent),
            x if x == Self::DevPaletteVisibilityChanged as i32 => Some(Self::DevPaletteVisibilityChanged),
            x if x == Self::WorldUIControllerHasPanelChanged as i32 => Some(Self::WorldUIControllerHasPanelChanged),
            x if x == Self::RotateAnchor as i32 => Some(Self::RotateAnchor),
            x if x == Self::ListenForResponseFound as i32 => Some(Self::ListenForResponseFound),
            x if x == Self::MAX_BASE as i32 => Some(Self::MAX_BASE),
            _ => None,
        }
    }
}