#[non_exhaustive]pub enum TriggerReason {
Show 30 variants
AbnormalCondition,
Authorized,
CablePluggedIn,
ChargingRateChanged,
ChargingStateChanged,
CostLimitReached,
Deauthorized,
EnergyLimitReached,
EVCommunicationLost,
EVConnectTimeout,
EVDeparted,
EVDetected,
LimitSet,
MeterValueClock,
MeterValuePeriodic,
OperationModeChanged,
RemoteStart,
RemoteStop,
ResetCommand,
RunningCost,
SignedDataReceived,
SoCLimitReached,
StopAuthorized,
TariffChanged,
TariffNotAccepted,
TimeLimitReached,
Trigger,
TxResumed,
UnlockCommand,
UnknownValue(String),
}Expand description
Reason the Charging Station sends this message to the CSMS
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AbnormalCondition
AbnormalCondition.
Authorized
Authorized.
CablePluggedIn
CablePluggedIn.
ChargingRateChanged
ChargingRateChanged.
ChargingStateChanged
ChargingStateChanged.
CostLimitReached
CostLimitReached.
Deauthorized.
EnergyLimitReached
EnergyLimitReached.
EVCommunicationLost
EVCommunicationLost.
EVConnectTimeout
EVConnectTimeout.
EVDeparted
EVDeparted.
EVDetected
EVDetected.
LimitSet
LimitSet.
MeterValueClock
MeterValueClock.
MeterValuePeriodic
MeterValuePeriodic.
OperationModeChanged
OperationModeChanged.
RemoteStart
RemoteStart.
RemoteStop
RemoteStop.
ResetCommand
ResetCommand.
RunningCost
RunningCost.
SignedDataReceived
SignedDataReceived.
SoCLimitReached
SoCLimitReached.
StopAuthorized
StopAuthorized.
TariffChanged
TariffChanged.
TariffNotAccepted
TariffNotAccepted.
TimeLimitReached
TimeLimitReached.
Trigger
Trigger.
TxResumed
TxResumed.
UnlockCommand
UnlockCommand.
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 TriggerReason
impl Clone for TriggerReason
Source§impl Debug for TriggerReason
impl Debug for TriggerReason
Source§impl<'de> Deserialize<'de> for TriggerReason
impl<'de> Deserialize<'de> for TriggerReason
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Source§impl Display for TriggerReason
impl Display for TriggerReason
impl Eq for TriggerReason
Source§impl FromStr for TriggerReason
impl FromStr for TriggerReason
Source§impl Hash for TriggerReason
impl Hash for TriggerReason
Source§impl Ord for TriggerReason
impl Ord for TriggerReason
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 PartialEq for TriggerReason
impl PartialEq for TriggerReason
Source§impl PartialOrd for TriggerReason
impl PartialOrd for TriggerReason
Source§impl Serialize for TriggerReason
impl Serialize for TriggerReason
impl StructuralPartialEq for TriggerReason
Source§impl Validate for TriggerReason
impl Validate for TriggerReason
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.