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 ELobbyType {
    Private = 0,
    FriendsOnly = 1,
    Public = 2,
    Invisible = 3,
    PrivateUnique = 4,
}

impl ELobbyType {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Private as i32 => Some(Self::Private),
            x if x == Self::FriendsOnly as i32 => Some(Self::FriendsOnly),
            x if x == Self::Public as i32 => Some(Self::Public),
            x if x == Self::Invisible as i32 => Some(Self::Invisible),
            x if x == Self::PrivateUnique as i32 => Some(Self::PrivateUnique),
            _ => None,
        }
    }
}