#[non_exhaustive]pub enum EnergyTransferMode {
ACSinglePhase,
ACTwoPhase,
ACThreePhase,
DC,
ACBPT,
ACBPTDER,
ACDER,
DCBPT,
DCACDP,
DCACDPBPT,
WPT,
UnknownValue(String),
}Expand description
Mode of energy transfer requested by the EV.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ACSinglePhase
AC_single_phase.
ACTwoPhase
AC_two_phase.
ACThreePhase
AC_three_phase.
DC
DC.
ACBPT
AC_BPT.
ACBPTDER
AC_BPT_DER.
ACDER
AC_DER.
DCBPT
DC_BPT.
DCACDP
DC_ACDP.
DCACDPBPT
DC_ACDP_BPT.
WPT
WPT.
UnknownValue(String)
A value that this version of OCPP does not define.
Produced instead of failing, so a peer’s forward-compatible extension does not
take down the connection. Reported by
Validate as
ViolationKind::UnknownEnumValue,
which the decoder turns into a PropertyConstraintViolation unless
UnknownEnumValues::Preserve is set.
Named UnknownValue because Unknown is itself a defined value of several
OCPP enumerations.
Implementations§
Trait Implementations§
Source§impl Clone for EnergyTransferMode
impl Clone for EnergyTransferMode
Source§impl Debug for EnergyTransferMode
impl Debug for EnergyTransferMode
Source§impl<'de> Deserialize<'de> for EnergyTransferMode
impl<'de> Deserialize<'de> for EnergyTransferMode
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EnergyTransferMode
impl Display for EnergyTransferMode
impl Eq for EnergyTransferMode
Source§impl FromStr for EnergyTransferMode
impl FromStr for EnergyTransferMode
Source§impl Hash for EnergyTransferMode
impl Hash for EnergyTransferMode
Source§impl Ord for EnergyTransferMode
impl Ord for EnergyTransferMode
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EnergyTransferMode
impl PartialEq for EnergyTransferMode
Source§impl PartialOrd for EnergyTransferMode
impl PartialOrd for EnergyTransferMode
Source§impl Serialize for EnergyTransferMode
impl Serialize for EnergyTransferMode
impl StructuralPartialEq for EnergyTransferMode
Source§impl Validate for EnergyTransferMode
impl Validate for EnergyTransferMode
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for EnergyTransferMode
impl Freeze for EnergyTransferMode
impl Move for EnergyTransferMode
impl RefUnwindSafe for EnergyTransferMode
impl Send for EnergyTransferMode
impl Sync for EnergyTransferMode
impl Unpin for EnergyTransferMode
impl UnsafeUnpin for EnergyTransferMode
impl UnwindSafe for EnergyTransferMode
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