#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub enum FuelType {
coal,
oil,
gas,
lignite,
hardCoal,
oilShale,
brownCoalLignite,
coalDerivedGas,
peat,
other,
}
impl FuelType {
pub fn uri(&self) -> &'static str {
match self {
FuelType::coal => "http://iec.ch/TC57/CIM100#FuelType.coal",
FuelType::oil => "http://iec.ch/TC57/CIM100#FuelType.oil",
FuelType::gas => "http://iec.ch/TC57/CIM100#FuelType.gas",
FuelType::lignite => "http://iec.ch/TC57/CIM100#FuelType.lignite",
FuelType::hardCoal => "http://iec.ch/TC57/CIM100#FuelType.hardCoal",
FuelType::oilShale => "http://iec.ch/TC57/CIM100#FuelType.oilShale",
FuelType::brownCoalLignite => "http://iec.ch/TC57/CIM100#FuelType.brownCoalLignite",
FuelType::coalDerivedGas => "http://iec.ch/TC57/CIM100#FuelType.coalDerivedGas",
FuelType::peat => "http://iec.ch/TC57/CIM100#FuelType.peat",
FuelType::other => "http://iec.ch/TC57/CIM100#FuelType.other",
}
}
}