linkbreakers 1.87.7

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.87.7
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DevicePlatformConditionValue : Allowed values for device platform routing conditions.
/// Allowed values for device platform routing conditions.
#[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
    }
}