steam_enums/
eclientstataggregatemethod.rs1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EClientStatAggregateMethod {
6 LatestOnly = 0,
7 Sum = 1,
8 Event = 2,
9 Scalar = 3,
10}
11
12impl EClientStatAggregateMethod {
13 pub fn from_i32(val: i32) -> Option<Self> {
14 match val {
15 x if x == Self::LatestOnly as i32 => Some(Self::LatestOnly),
16 x if x == Self::Sum as i32 => Some(Self::Sum),
17 x if x == Self::Event as i32 => Some(Self::Event),
18 x if x == Self::Scalar as i32 => Some(Self::Scalar),
19 _ => None,
20 }
21 }
22}