cimstructs/WindGenUnitKind.rs
1/// Kind of wind generating unit.
2#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3pub enum WindGenUnitKind {
4 /// The wind generating unit is located offshore.
5 offshore,
6 /// The wind generating unit is located onshore.
7 onshore,
8}
9
10impl WindGenUnitKind {
11 pub fn uri(&self) -> &'static str {
12 match self {
13 WindGenUnitKind::offshore => "http://iec.ch/TC57/CIM100#WindGenUnitKind.offshore",
14 WindGenUnitKind::onshore => "http://iec.ch/TC57/CIM100#WindGenUnitKind.onshore",
15 }
16 }
17}