use std::fmt::{Display, Formatter};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum CategoryOfTheBranch {
Architecture,
HostName,
Language,
Legacy,
PatchLevel,
Platform,
ProductFamily,
ProductName,
ProductVersion,
ProductVersionRange,
ServicePack,
Specification,
Vendor,
}
impl Display for CategoryOfTheBranch {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
CategoryOfTheBranch::Architecture => write!(f, "architecture"),
CategoryOfTheBranch::HostName => write!(f, "host_name"),
CategoryOfTheBranch::Language => write!(f, "language"),
CategoryOfTheBranch::Legacy => write!(f, "legacy"),
CategoryOfTheBranch::PatchLevel => write!(f, "patch_level"),
CategoryOfTheBranch::Platform => write!(f, "platform"),
CategoryOfTheBranch::ProductFamily => write!(f, "product_family"),
CategoryOfTheBranch::ProductName => write!(f, "product_name"),
CategoryOfTheBranch::ProductVersion => write!(f, "product_version"),
CategoryOfTheBranch::ProductVersionRange => write!(f, "product_version_range"),
CategoryOfTheBranch::ServicePack => write!(f, "service_pack"),
CategoryOfTheBranch::Specification => write!(f, "specification"),
CategoryOfTheBranch::Vendor => write!(f, "vendor"),
}
}
}