#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum ETwoFactorUsageType {
Unknown = 0,
None = 1,
MobileConfirmation = 2,
Login = 3,
}
impl ETwoFactorUsageType {
pub fn from_i32(val: i32) -> Option<Self> {
match val {
x if x == Self::Unknown as i32 => Some(Self::Unknown),
x if x == Self::None as i32 => Some(Self::None),
x if x == Self::MobileConfirmation as i32 => Some(Self::MobileConfirmation),
x if x == Self::Login as i32 => Some(Self::Login),
_ => None,
}
}
}