pub enum ReasonCode {
Show 62 variants
DuplicateProfile,
InvalidProfile,
InvalidProfileId,
InvalidSchedule,
InvalidStackLevel,
InvalidOperationMode,
NoFreqWattCurve,
NoPhaseForDC,
PhaseConflict,
NoSignalWattCurve,
RateLimitExceeded,
UnsupportedKind,
UnsupportedPurpose,
UnsupportedRateUnit,
CSNotAccepted,
FixedCable,
NoCable,
UnknownConnectorId,
UnknownConnectorType,
UnknownEvse,
BatterySoHLow,
BatterySoC,
BatteryDamaged,
BatteryUnknown,
BatteryType,
NoBatteryAvailable,
PriorityNetworkConf,
InvalidConfSlot,
InvalidNetworkConf,
NoSecurityDowngrade,
DuplicateRequestId,
InvalidMessageSeq,
MissingDevModelInfo,
NoError,
NotFound,
Unspecified,
UnsupportedRequest,
FwUpdateInProgress,
NotEnabled,
ReadOnly,
WriteOnly,
InvalidCSR,
InvalidCertificate,
InvalidURL,
RedirectNotAllowed,
InternalError,
OutOfMemory,
OutOfStorage,
InvalidIdToken,
TxInProgress,
TxNotFound,
TxStarted,
InvalidValue,
MissingParam,
TooLargeElement,
TooManyElements,
UnsupportedParam,
ValueOutOfRange,
ValuePositiveOnly,
ValueTooHigh,
ValueTooLow,
ValueZeroNotAllowed,
}Expand description
Standardized StatusInfo.reasonCode values.
A closed set: it holds only the values the specification
defines. The wire field is a string, so a deployment can still
send something else – from_wire returns None for that,
which is not by itself a protocol error.
Variants§
DuplicateProfile
A charging profile with same stackLevel - chargingProfilePurpose combination already exists on the Charging Station and has an overlapping validity period.
Spec group: Charging Profiles.
InvalidProfile
Provided chargingProfile contains invalid elements.
Spec group: Charging Profiles.
InvalidProfileId
Provided chargingProfile has an id that is within an invalid range.
Spec group: Charging Profiles.
InvalidSchedule
Provided chargingSchedule contains invalid elements.
Spec group: Charging Profiles.
InvalidStackLevel
Provided value for stackLevel is invalid.
Spec group: Charging Profiles.
InvalidOperationMode
Provided operationMode is invalid for this chargingProfilePurpose
Spec group: Charging Profiles.
NoFreqWattCurve
A frequency-watt curve is missing in a charging schedule period with operation mode = LocalFrequency.
Spec group: Charging Profiles.
NoPhaseForDC
Phase selection for a DC EVSE is not supported
Spec group: Charging Profiles.
PhaseConflict
Phase conflict between applicable charging profiles
Spec group: Charging Profiles.
NoSignalWattCurve
A signal-watt curve is missing in a charging schedule period when an AFRRSignalRequest is received.
Spec group: Charging Profiles.
RateLimitExceeded
A charging profile of the same purpose is submitted too frequently
Spec group: Charging Profiles.
UnsupportedKind
The requested charging profile kind is not supported
Spec group: Charging Profiles.
UnsupportedPurpose
The requested charging profile purpose is not supported
Spec group: Charging Profiles.
UnsupportedRateUnit
A chargingRateUnit is provided that is not supported.
Spec group: Charging Profiles.
CSNotAccepted
BootNotification of Charging Station has not (yet) been accepted by CSMS.
Spec group: Charging Station.
FixedCable
The connector has its own fixed cable that cannot be unlocked.
Spec group: Charging Station.
NoCable
No cable is connected at this time.
Spec group: Charging Station.
UnknownConnectorId
Connector Id is not known on EVSE
Spec group: Charging Station.
UnknownConnectorType
Connector type is not known on EVSE
Spec group: Charging Station.
UnknownEvse
EVSE is not known on Charging Stations
Spec group: Charging Station.
BatterySoHLow
Battery State of Health is too low
Spec group: Swap Station.
BatterySoC
Battery State of Charge has unacceptable value
Spec group: Swap Station.
BatteryDamaged
Battery is damaged
Spec group: Swap Station.
BatteryUnknown
Battery has unknown serial number
Spec group: Swap Station.
BatteryType
Battery type not accepted
Spec group: Swap Station.
NoBatteryAvailable
No battery available for swapping
Spec group: Swap Station.
PriorityNetworkConf
A network configuration variable of an NetworkConfiguration instance present in NetworkConfigurationPriority is not allowed to be changed
Spec group: Network Configuration.
InvalidConfSlot
A value for configurationSlot is used that is not present in NetworkConfigurationPriority.valuesList
Spec group: Network Configuration.
InvalidNetworkConf
Some values in NetworkConfiguration instance are invalid
Spec group: Network Configuration.
NoSecurityDowngrade
Security profile downgrade is not allowed
Spec group: Network Configuration.
DuplicateRequestId
A requestId is provided, that has already been used for this type of request.
Spec group: Miscellaneous.
InvalidMessageSeq
Message should not be sent at this moment in current scenario.
Spec group: Miscellaneous.
MissingDevModelInfo
Information needed for operation is missing from Device Model
Spec group: Miscellaneous.
NoError
No error has occurred, but some extra information is in additionalInfo .
Spec group: Miscellaneous.
NotFound
No object(s) found that match a provided ID or criteria.
Spec group: Miscellaneous.
Unspecified
No reason is specified, but some extra information is in additionalInfo
Spec group: Miscellaneous.
UnsupportedRequest
This request is not supported.
Spec group: Miscellaneous.
FwUpdateInProgress
Operation is not possible, because a firmware update is in progress.
Spec group: Operations and Permissions.
NotEnabled
Feature is not enabled.
Spec group: Operations and Permissions.
ReadOnly
Targeted variable is read-only and cannot be set.
Spec group: Operations and Permissions.
WriteOnly
Targeted variable is write-only and cannot be read.
Spec group: Operations and Permissions.
InvalidCSR
Provided CSR is invalid
Spec group: Security.
InvalidCertificate
Provided certificate is invalid.
Spec group: Security.
InvalidURL
Provided URL is invalid.
Spec group: Security.
RedirectNotAllowed
HTTP Redirection is not allowed
Spec group: Security.
InternalError
Operation cannot be completed due to an internal error.
Spec group: System Errors.
OutOfMemory
Operation not possible, because system does not have enough memory.
Spec group: System Errors.
OutOfStorage
Operation not possible, because system does not have enough storage.
Spec group: System Errors.
InvalidIdToken
Provided idToken is not valid.
Spec group: Transactions.
TxInProgress
A transaction is in progress.
Spec group: Transactions.
TxNotFound
There is no such transaction.
Spec group: Transactions.
TxStarted
A transaction had already started (e.g. due to cable being plugged in).
Spec group: Transactions.
InvalidValue
An invalid value has been provided.
Spec group: Values and Ranges.
MissingParam
A parameter that is required for the request is missing.
Spec group: Values and Ranges.
TooLargeElement
Provided element is too large to handle.
Spec group: Values and Ranges.
TooManyElements
Too many elements have been provided.
Spec group: Values and Ranges.
UnsupportedParam
A parameter was provided that is not supported.
Spec group: Values and Ranges.
ValueOutOfRange
Provided value is out of range.
Spec group: Values and Ranges.
ValuePositiveOnly
Provided value is not greater than zero.
Spec group: Values and Ranges.
ValueTooHigh
Provided value is too high.
Spec group: Values and Ranges.
ValueTooLow
Provided value is too low.
Spec group: Values and Ranges.
ValueZeroNotAllowed
Provided value cannot be zero.
Spec group: Values and Ranges.
Implementations§
Source§impl ReasonCode
impl ReasonCode
Sourcepub const ALL: &'static [Self]
pub const ALL: &'static [Self]
Every value this version’s specification defines (62), in spec order.
Sourcepub fn from_wire(value: &str) -> Option<Self>
pub fn from_wire(value: &str) -> Option<Self>
Parses a wire value, returning None for values the
specification doesn’t define (e.g. a vendor’s own).
Sourcepub const fn typically_used_for(&self) -> Option<&'static str>
pub const fn typically_used_for(&self) -> Option<&'static str>
The message(s) the spec expects this reason code on.
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more