redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ElectricalContext {
    /// This value shall represent a circuit that shares the L1 current-carrying conductor, such as circuits with phase wiring types of Two-phase / 3-Wire or 4-Wire, or Three-phase / 4-Wire or 5-Wire.
    Line1,
    /// This value shall represent a circuit that shares the L2 current-carrying conductor, such as circuits with phase wiring types of Two-phase / 4-Wire or Three-phase / 4-Wire or 5-Wire.
    Line2,
    /// This value shall represent a circuit that shares the L3 current-carrying conductor, such as circuits with phase wiring types of Three-phase / 4-Wire or 5-Wire.
    Line3,
    /// This value shall represent the grounded current-carrying return circuit of current-carrying conductors, such as circuits with phase wiring types of Single-phase / 3-Wire, Two-phase / 4-Wire, or Three-phase / 5-Wire.
    Neutral,
    /// This value shall represent a circuit formed by two current-carrying conductors, such as circuits with phase wiring types of Two-phase / 3-Wire or 4-Wire, or Three-phase / 4-Wire or 5-Wire.
    LineToLine,
    /// This value shall represent a circuit formed by L1 and L2 current-carrying conductors, such as circuits with phase wiring types of Two-phase / 3-Wire or 4-Wire, or Three-phase / 4-Wire or 5-Wire.
    #[serde(rename = "Line1ToLine2")]
    Line1TLine2,
    /// This value shall represent a circuit formed by L2 and L3 current-carrying conductors, such as circuits with phase wiring types of Three-phase / 4-Wire or 5-Wire.
    #[serde(rename = "Line2ToLine3")]
    Line2TLine3,
    /// This value shall represent a circuit formed by L3 and L1 current-carrying conductors, such as circuits with phase wiring types of Three-phase / 4-Wire or 5-Wire.
    #[serde(rename = "Line3ToLine1")]
    Line3TLine1,
    /// This value shall represent a circuit formed by a line and neutral current-carrying conductor, such as circuits with phase wiring types of Single-phase / 3-Wire, Two-phase / 4-Wire, or Three-phase / 4-Wire or 5-Wire.
    LineToNeutral,
    /// This value shall represent a circuit formed by L1 and neutral current-carrying conductors, such as circuits with phase wiring types of Single-phase / 3-Wire, Two-phase / 3-Wire or 4-Wire, or Three-phase / 4-Wire or 5-Wire.
    #[serde(rename = "Line1ToNeutral")]
    Line1TNeutral,
    /// This value shall represent a circuit formed by L2 and neutral current-carrying conductors, such as circuits with phase wiring types of Two-phase / 4-Wire or Three-phase / 5-Wire.
    #[serde(rename = "Line2ToNeutral")]
    Line2TNeutral,
    /// This value shall represent a circuit formed by L3 and neutral current-carrying conductors, such as circuits with a phase wiring type of Three-phase / 5-Wire.
    #[serde(rename = "Line3ToNeutral")]
    Line3TNeutral,
    /// This value shall represent circuit formed by L1, L2, and neutral current-carrying conductors, such as circuits with phase wiring types of Two-phase/ 4-Wire or Three-phase / 5-Wire.
    #[serde(rename = "Line1ToNeutralAndL1L2")]
    Line1TNeutralAndL1L2,
    /// This value shall represent a circuit formed by L1, L2, and neutral current-carrying conductors, such as circuits with phase wiring types of Two-phase/ 4-Wire or Three-phase / 5-Wire.
    #[serde(rename = "Line2ToNeutralAndL1L2")]
    Line2TNeutralAndL1L2,
    /// This value shall represent a circuit formed by L2, L3, and neutral current-carrying conductors, such as circuits with a phase wiring type of Three-phase / 5-Wire.
    #[serde(rename = "Line2ToNeutralAndL2L3")]
    Line2TNeutralAndL2L3,
    /// This value shall represent a circuit formed by L3, L1, and neutral current-carrying conductors, such as circuits with a phase wiring type of Three-phase / 5-Wire.
    #[serde(rename = "Line3ToNeutralAndL3L1")]
    Line3TNeutralAndL3L1,
    /// This value shall represent the circuits formed by all current-carrying conductors for any phase wiring type.
    Total,
}

#[allow(clippy::derivable_impls)]
impl Default for ElectricalContext {
     fn default() -> ElectricalContext {
        ElectricalContext::Line1
     }
}

impl crate::Metadata<'static> for ElectricalContext {
    const JSON_SCHEMA: &'static str = "Sensor.json";
}