#[non_exhaustive]pub enum ReasonCode {
Show 63 variants
BatteryDamaged,
BatterySoC,
BatterySoHLow,
BatteryType,
BatteryUnknown,
CSNotAccepted,
DuplicateProfile,
DuplicateRequestId,
FixedCable,
FwUpdateInProgress,
InternalError,
InvalidCSR,
InvalidCertificate,
InvalidConfSlot,
InvalidIdToken,
InvalidMessageSeq,
InvalidNetworkConf,
InvalidOperationMode,
InvalidProfile,
InvalidProfileId,
InvalidSchedule,
InvalidStackLevel,
InvalidURL,
InvalidValue,
MissingDevModelInfo,
MissingParam,
NoBatteryAvailable,
NoCable,
NoError,
NoFreqWattCurve,
NoPhaseForDC,
NoSecurityDowngrade,
NoSignalWattCurve,
NotEnabled,
NotFound,
OutOfMemory,
OutOfStorage,
PhaseConflict,
PriorityNetworkConf,
RateLimitExceeded,
ReadOnly,
RedirectNotAllowed,
TooLargeElement,
TooManyElements,
TxInProgress,
TxNotFound,
TxStarted,
UnknownConnectorId,
UnknownConnectorType,
UnknownEvse,
Unspecified,
UnsupportedKind,
UnsupportedParam,
UnsupportedPurpose,
UnsupportedRateUnit,
UnsupportedRequest,
ValueOutOfRange,
ValuePositiveOnly,
ValueTooHigh,
ValueTooLow,
ValueZeroNotAllowed,
WriteOnly,
UnknownValue(String),
}Expand description
A standardized reason code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BatteryDamaged
BatteryDamaged.
BatterySoC
BatterySoC.
BatterySoHLow
BatterySoHLow.
BatteryType
BatteryType.
BatteryUnknown
BatteryUnknown.
CSNotAccepted
CSNotAccepted.
DuplicateProfile
DuplicateProfile.
DuplicateRequestId
DuplicateRequestId.
FixedCable
FixedCable.
FwUpdateInProgress
FwUpdateInProgress.
InternalError
InternalError.
InvalidCSR
InvalidCSR.
InvalidCertificate
InvalidCertificate.
InvalidConfSlot
InvalidConfSlot.
InvalidIdToken
InvalidIdToken.
InvalidMessageSeq
InvalidMessageSeq.
InvalidNetworkConf
InvalidNetworkConf.
InvalidOperationMode
InvalidOperationMode.
InvalidProfile
InvalidProfile.
InvalidProfileId
InvalidProfileId.
InvalidSchedule
InvalidSchedule.
InvalidStackLevel
InvalidStackLevel.
InvalidURL
InvalidURL.
InvalidValue
InvalidValue.
MissingDevModelInfo
MissingDevModelInfo.
MissingParam
MissingParam.
NoBatteryAvailable
NoBatteryAvailable.
NoCable
NoCable.
NoError
NoError.
NoFreqWattCurve
NoFreqWattCurve.
NoPhaseForDC
NoPhaseForDC.
NoSecurityDowngrade
NoSecurityDowngrade.
NoSignalWattCurve
NoSignalWattCurve.
NotEnabled
NotEnabled.
NotFound
NotFound.
OutOfMemory
OutOfMemory.
OutOfStorage
OutOfStorage.
PhaseConflict
PhaseConflict.
PriorityNetworkConf
PriorityNetworkConf.
RateLimitExceeded
RateLimitExceeded.
ReadOnly
ReadOnly.
RedirectNotAllowed
RedirectNotAllowed.
TooLargeElement
TooLargeElement.
TooManyElements
TooManyElements.
TxInProgress
TxInProgress.
TxNotFound
TxNotFound.
TxStarted
TxStarted.
UnknownConnectorId
UnknownConnectorId.
UnknownConnectorType
UnknownConnectorType.
UnknownEvse
UnknownEvse.
Unspecified
Unspecified.
UnsupportedKind
UnsupportedKind.
UnsupportedParam
UnsupportedParam.
UnsupportedPurpose
UnsupportedPurpose.
UnsupportedRateUnit
UnsupportedRateUnit.
UnsupportedRequest
UnsupportedRequest.
ValueOutOfRange
ValueOutOfRange.
ValuePositiveOnly
ValuePositiveOnly.
ValueTooHigh
ValueTooHigh.
ValueTooLow
ValueTooLow.
ValueZeroNotAllowed
ValueZeroNotAllowed.
WriteOnly
WriteOnly.
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 ReasonCode
impl Clone for ReasonCode
Source§impl Debug for ReasonCode
impl Debug for ReasonCode
Source§impl<'de> Deserialize<'de> for ReasonCode
impl<'de> Deserialize<'de> for ReasonCode
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 ReasonCode
impl Display for ReasonCode
impl Eq for ReasonCode
Source§impl FromStr for ReasonCode
impl FromStr for ReasonCode
Source§impl Hash for ReasonCode
impl Hash for ReasonCode
Source§impl Ord for ReasonCode
impl Ord for ReasonCode
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 ReasonCode
impl PartialEq for ReasonCode
Source§impl PartialOrd for ReasonCode
impl PartialOrd for ReasonCode
Source§impl Serialize for ReasonCode
impl Serialize for ReasonCode
impl StructuralPartialEq for ReasonCode
Source§impl Validate for ReasonCode
impl Validate for ReasonCode
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.