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
/// Specifies the capability of the hydro generating unit to convert energy as a generator or pump.
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub enum HydroEnergyConversionKind {
    /// Able to generate power, but not able to pump water for energy storage.
    generator,
    /// Able to both generate power and pump water for energy storage.
    pumpAndGenerator,
}

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