steam-enums 0.1.0

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 ESystemUpdateNotificationType {
    Invalid = 0,
    Available = 1,
    NeedsRestart = 2,
}

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