cimoxide-structs 0.3.1

Generated Rust structs for the IEC 61970/61968 Common Information Model as profiled by ENTSO-E CGMES
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Kind of wind generating unit.
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub enum WindGenUnitKind {
    /// The wind generating unit is located offshore.
    offshore,
    /// The wind generating unit is located onshore.
    onshore,
}

impl WindGenUnitKind {
    pub fn uri(&self) -> &'static str {
        match self {
            WindGenUnitKind::offshore => "http://iec.ch/TC57/CIM100#WindGenUnitKind.offshore",
            WindGenUnitKind::onshore => "http://iec.ch/TC57/CIM100#WindGenUnitKind.onshore",
        }
    }
}