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
/// The orientation of the coordinate system with respect to top, left, and the coordinate number system.
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub enum OrientationKind {
    /// For 2D diagrams, a positive orientation will result in X values increasing from left to right and Y values increasing from bottom to top. This is also known as a right hand orientation.
    positive,
    /// For 2D diagrams, a negative orientation gives the left-hand orientation (favoured by computer graphics displays) with X values increasing from left to right and Y values increasing from top to bottom. This is also known as a left hand orientation.
    negative,
}

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