#[non_exhaustive]pub enum Reason {
Show 21 variants
DeAuthorized,
EmergencyStop,
EnergyLimitReached,
EVDisconnected,
GroundFault,
ImmediateReset,
MasterPass,
Local,
LocalOutOfCredit,
Other,
OvercurrentFault,
PowerLoss,
PowerQuality,
Reboot,
Remote,
SOCLimitReached,
StoppedByEV,
TimeLimitReached,
Timeout,
ReqEnergyTransferRejected,
UnknownValue(String),
}Expand description
The stoppedReason is the reason/event that initiated the process of stopping the transaction. It will normally be the user stopping authorization via card (Local or MasterPass) or app (Remote), but it can also be CSMS revoking authorization (DeAuthorized), or disconnecting the EV when TxStopPoint = EVConnected (EVDisconnected). Most other reasons are related to technical faults or energy limitations. + MAY only be omitted when stoppedReason is “Local”
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DeAuthorized
DeAuthorized.
EmergencyStop
EmergencyStop.
EnergyLimitReached
EnergyLimitReached.
EVDisconnected
EVDisconnected.
GroundFault
GroundFault.
ImmediateReset
ImmediateReset.
MasterPass
MasterPass.
Local
Local.
LocalOutOfCredit
LocalOutOfCredit.
Other
Other.
OvercurrentFault
OvercurrentFault.
PowerLoss
PowerLoss.
PowerQuality
PowerQuality.
Reboot
Reboot.
Remote
Remote.
SOCLimitReached
SOCLimitReached.
StoppedByEV
StoppedByEV.
TimeLimitReached
TimeLimitReached.
Timeout
Timeout.
ReqEnergyTransferRejected
ReqEnergyTransferRejected.
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<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
impl Eq for Reason
Source§impl Ord for Reason
impl Ord for Reason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Reason
impl PartialOrd for Reason
impl StructuralPartialEq for Reason
Source§impl Validate for Reason
impl Validate for Reason
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
out, relative to path.