redfish_codegen/models/sensor/electrical_context.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ElectricalContext {
6 /// 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.
7 Line1,
8 /// 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.
9 Line2,
10 /// 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.
11 Line3,
12 /// 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.
13 Neutral,
14 /// 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.
15 LineToLine,
16 /// 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.
17 #[serde(rename = "Line1ToLine2")]
18 Line1TLine2,
19 /// 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.
20 #[serde(rename = "Line2ToLine3")]
21 Line2TLine3,
22 /// 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.
23 #[serde(rename = "Line3ToLine1")]
24 Line3TLine1,
25 /// 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.
26 LineToNeutral,
27 /// 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.
28 #[serde(rename = "Line1ToNeutral")]
29 Line1TNeutral,
30 /// 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.
31 #[serde(rename = "Line2ToNeutral")]
32 Line2TNeutral,
33 /// 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.
34 #[serde(rename = "Line3ToNeutral")]
35 Line3TNeutral,
36 /// 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.
37 #[serde(rename = "Line1ToNeutralAndL1L2")]
38 Line1TNeutralAndL1L2,
39 /// 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.
40 #[serde(rename = "Line2ToNeutralAndL1L2")]
41 Line2TNeutralAndL1L2,
42 /// 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.
43 #[serde(rename = "Line2ToNeutralAndL2L3")]
44 Line2TNeutralAndL2L3,
45 /// 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.
46 #[serde(rename = "Line3ToNeutralAndL3L1")]
47 Line3TNeutralAndL3L1,
48 /// This value shall represent the circuits formed by all current-carrying conductors for any phase wiring type.
49 Total,
50}
51
52#[allow(clippy::derivable_impls)]
53impl Default for ElectricalContext {
54 fn default() -> ElectricalContext {
55 ElectricalContext::Line1
56 }
57}
58
59impl crate::Metadata<'static> for ElectricalContext {
60 const JSON_SCHEMA: &'static str = "Sensor.json";
61}