cimoxide-structs 0.3.3

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
/// Type of generic non-linear load model.
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub enum GenericNonLinearLoadModelKind {
    /// Exponential recovery model.
    exponentialRecovery,
    /// Load adaptive model.
    loadAdaptive,
}

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