use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum DevicePlatformConditionValue {
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_UNSPECIFIED")]
DevicePlatformConditionValueUnspecified,
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_IOS")]
DevicePlatformConditionValueIos,
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_ANDROID")]
DevicePlatformConditionValueAndroid,
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_WINDOWS")]
DevicePlatformConditionValueWindows,
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_MACOS")]
DevicePlatformConditionValueMacos,
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_LINUX")]
DevicePlatformConditionValueLinux,
#[serde(rename = "DEVICE_PLATFORM_CONDITION_VALUE_CHROMEOS")]
DevicePlatformConditionValueChromeos,
}
impl std::fmt::Display for DevicePlatformConditionValue {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::DevicePlatformConditionValueUnspecified => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_UNSPECIFIED"),
Self::DevicePlatformConditionValueIos => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_IOS"),
Self::DevicePlatformConditionValueAndroid => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_ANDROID"),
Self::DevicePlatformConditionValueWindows => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_WINDOWS"),
Self::DevicePlatformConditionValueMacos => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_MACOS"),
Self::DevicePlatformConditionValueLinux => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_LINUX"),
Self::DevicePlatformConditionValueChromeos => write!(f, "DEVICE_PLATFORM_CONDITION_VALUE_CHROMEOS"),
}
}
}
impl Default for DevicePlatformConditionValue {
fn default() -> DevicePlatformConditionValue {
Self::DevicePlatformConditionValueUnspecified
}
}