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 ETimelineChangeNotificationType {
    Started = 1,
    Stopped = 2,
    Deleted = 3,
    RecordingStarted = 4,
    RecordingStopped = 5,
    RecordingUpdated = 6,
}

impl ETimelineChangeNotificationType {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::Started as i32 => Some(Self::Started),
            x if x == Self::Stopped as i32 => Some(Self::Stopped),
            x if x == Self::Deleted as i32 => Some(Self::Deleted),
            x if x == Self::RecordingStarted as i32 => Some(Self::RecordingStarted),
            x if x == Self::RecordingStopped as i32 => Some(Self::RecordingStopped),
            x if x == Self::RecordingUpdated as i32 => Some(Self::RecordingUpdated),
            _ => None,
        }
    }
}