1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// 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";
}