#[repr(i32)]pub enum PhaseRef {
Unspecified = 0,
PhaseNone = 1,
L1 = 2,
L2 = 3,
L3 = 4,
N = 5,
L1N = 6,
L2N = 7,
L3N = 8,
L1L2 = 9,
L2L3 = 10,
L3L1 = 11,
}Expand description
§22.3 Phase / reference. Wire form mirrors OCPP (L1-N, L1-L2, …).
Variants§
Unspecified = 0
PhaseNone = 1
L1 = 2
L2 = 3
L3 = 4
N = 5
L1N = 6
L2N = 7
L3N = 8
L1L2 = 9
L2L3 = 10
L3L1 = 11
Implementations§
Source§impl PhaseRef
impl PhaseRef
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl<'de> Deserialize<'de> for PhaseRef
impl<'de> Deserialize<'de> for PhaseRef
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for PhaseRef
impl Ord for PhaseRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for PhaseRef
impl PartialOrd for PhaseRef
impl Copy for PhaseRef
impl Eq for PhaseRef
impl StructuralPartialEq for PhaseRef
Auto Trait Implementations§
impl Freeze for PhaseRef
impl RefUnwindSafe for PhaseRef
impl Send for PhaseRef
impl Sync for PhaseRef
impl Unpin for PhaseRef
impl UnsafeUnpin for PhaseRef
impl UnwindSafe for PhaseRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.