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 EMMSLobbyStatus {
    Invalid = 0,
    Exists = 1,
    DoesNotExist = 2,
    NotAMember = 3,
}

impl EMMSLobbyStatus {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Invalid as i32 => Some(Self::Invalid),
            x if x == Self::Exists as i32 => Some(Self::Exists),
            x if x == Self::DoesNotExist as i32 => Some(Self::DoesNotExist),
            x if x == Self::NotAMember as i32 => Some(Self::NotAMember),
            _ => None,
        }
    }
}