use crate::extend::enum_extend::EnumExtend;
#[derive(EnumString, Display, Debug, EnumIter, Eq, PartialEq)]
pub enum TokenMeidaAllow {
#[strum(serialize = "(")]
LeftBrackets,
#[strum(serialize = ")")]
RightBrackets,
#[strum(serialize = ":")]
Colon,
}
impl EnumExtend for TokenMeidaAllow {}
#[allow(clippy::from_over_into)]
impl Into<String> for TokenMeidaAllow {
fn into(self) -> String {
self.to_string()
}
}
#[derive(EnumString, Display, Debug, EnumIter, Eq, PartialEq)]
pub enum TokenMediaType {
#[strum(serialize = "all")]
All,
#[strum(serialize = "print")]
Print,
#[strum(serialize = "screen")]
Screen,
#[strum(serialize = "speech")]
Speech,
}
impl EnumExtend for TokenMediaType {}
#[allow(clippy::from_over_into)]
impl Into<String> for TokenMediaType {
fn into(self) -> String {
self.to_string()
}
}
#[derive(EnumString, Display, Debug, EnumIter, Eq, PartialEq)]
pub enum TokenMediaLogic {
#[strum(serialize = "and")]
And,
#[strum(serialize = "not")]
Not,
#[strum(serialize = "only")]
Only,
}
impl EnumExtend for TokenMediaLogic {}
#[allow(clippy::from_over_into)]
impl Into<String> for TokenMediaLogic {
fn into(self) -> String {
self.to_string()
}
}
#[derive(EnumString, Display, Debug, EnumIter, Eq, PartialEq)]
pub enum TokenMediaFeature {
#[strum(serialize = "aspect-ratio")]
AspectRatio,
#[strum(serialize = "color")]
Color,
#[strum(serialize = "color-index")]
ColorIndex,
#[strum(serialize = "device-aspect-ratio")]
DeviceAspectRatio,
#[strum(serialize = "device-height")]
DeviceHeight,
#[strum(serialize = "device-width")]
DeviceWidth,
#[strum(serialize = "grid")]
Grid,
#[strum(serialize = "height")]
Height,
#[strum(serialize = "max-aspect-ratio")]
MaxAspectRatio,
#[strum(serialize = "max-color")]
MaxColor,
#[strum(serialize = "max-color-index")]
MaxColorIndex,
#[strum(serialize = "max-device-aspect-ratio")]
MaxDeviceAspectRatio,
#[strum(serialize = "max-device-height")]
MaxDeviceHeight,
#[strum(serialize = "max-device-width")]
MaxDeviceWidth,
#[strum(serialize = "max-height")]
MaxHeight,
#[strum(serialize = "max-monochrome")]
MaxMonochrome,
#[strum(serialize = "max-resolution")]
MaxResolution,
#[strum(serialize = "max-width")]
MaxWidth,
#[strum(serialize = "min-aspect-ratio")]
MinAspectRatio,
#[strum(serialize = "min-color")]
MinColor,
#[strum(serialize = "min-color-index")]
MinColorIndex,
#[strum(serialize = "min-device-aspect-ratio")]
MinDeviceAspectRatio,
#[strum(serialize = "min-device-width")]
MinDeviceWidth,
#[strum(serialize = "min-device-height")]
MinDeviceHeight,
#[strum(serialize = "min-height")]
MinHeight,
#[strum(serialize = "min-monochrome")]
MinMonochrome,
#[strum(serialize = "min-resolution")]
MinResolution,
#[strum(serialize = "min-width")]
MinWidth,
#[strum(serialize = "monochrome")]
Monochrome,
#[strum(serialize = "orientation")]
Orientation,
#[strum(serialize = "resolution")]
Resolution,
#[strum(serialize = "scan")]
Scan,
#[strum(serialize = "width")]
Width, }
impl EnumExtend for TokenMediaFeature {}
#[allow(clippy::from_over_into)]
impl Into<String> for TokenMediaFeature {
fn into(self) -> String {
self.to_string()
}
}