Skip to main content

ocpp_kit/standard/
reason_codes.rs

1// @generated by `cargo xtask appendix` from OCPP 2.1 Part 2 — Appendices v2.0 (2025-01-23).
2//
3// Only the interoperability surface is reproduced: names, data types and criticality. The
4// appendix's prose descriptions are not copied, and the appendix itself is not redistributed.
5// DO NOT EDIT — re-run the generator instead.
6
7//! The standardized `StatusInfo.reasonCode` values.
8//!
9//! Appendix chapter 5. `statusInfo` is optional and every message carries a status of
10//! its own, so a reason code adds insight rather than meaning — but using the
11//! standardized spelling is what lets the other side act on it automatically.
12
13ocpp_enum! {
14    /// A standardized reason code.
15    ReasonCode {
16        /// `BatteryDamaged`.
17        BatteryDamaged = "BatteryDamaged",
18        /// `BatterySoC`.
19        BatterySoC = "BatterySoC",
20        /// `BatterySoHLow`.
21        BatterySoHLow = "BatterySoHLow",
22        /// `BatteryType`.
23        BatteryType = "BatteryType",
24        /// `BatteryUnknown`.
25        BatteryUnknown = "BatteryUnknown",
26        /// `CSNotAccepted`.
27        CSNotAccepted = "CSNotAccepted",
28        /// `DuplicateProfile`.
29        DuplicateProfile = "DuplicateProfile",
30        /// `DuplicateRequestId`.
31        DuplicateRequestId = "DuplicateRequestId",
32        /// `FixedCable`.
33        FixedCable = "FixedCable",
34        /// `FwUpdateInProgress`.
35        FwUpdateInProgress = "FwUpdateInProgress",
36        /// `InternalError`.
37        InternalError = "InternalError",
38        /// `InvalidCSR`.
39        InvalidCSR = "InvalidCSR",
40        /// `InvalidCertificate`.
41        InvalidCertificate = "InvalidCertificate",
42        /// `InvalidIdToken`.
43        InvalidIdToken = "InvalidIdToken",
44        /// `InvalidMessageSeq`.
45        InvalidMessageSeq = "InvalidMessageSeq",
46        /// `InvalidProfile`.
47        InvalidProfile = "InvalidProfile",
48        /// `InvalidProfileId`.
49        InvalidProfileId = "InvalidProfileId",
50        /// `InvalidSchedule`.
51        InvalidSchedule = "InvalidSchedule",
52        /// `InvalidStackLevel`.
53        InvalidStackLevel = "InvalidStackLevel",
54        /// `InvalidURL`.
55        InvalidURL = "InvalidURL",
56        /// `InvalidValue`.
57        InvalidValue = "InvalidValue",
58        /// `MissingDevModelInfo`.
59        MissingDevModelInfo = "MissingDevModelInfo",
60        /// `MissingParam`.
61        MissingParam = "MissingParam",
62        /// `NoBatteryAvailable`.
63        NoBatteryAvailable = "NoBatteryAvailable",
64        /// `NoCable`.
65        NoCable = "NoCable",
66        /// `NoError`.
67        NoError = "NoError",
68        /// `NoFreqWattCurve`.
69        NoFreqWattCurve = "NoFreqWattCurve",
70        /// `NoPhaseForDC`.
71        NoPhaseForDC = "NoPhaseForDC",
72        /// `NoSignalWattCurve`.
73        NoSignalWattCurve = "NoSignalWattCurve",
74        /// `NotEnabled`.
75        NotEnabled = "NotEnabled",
76        /// `NotFound`.
77        NotFound = "NotFound",
78        /// `OutOfMemory`.
79        OutOfMemory = "OutOfMemory",
80        /// `OutOfStorage`.
81        OutOfStorage = "OutOfStorage",
82        /// `RateLimitExceeded`.
83        RateLimitExceeded = "RateLimitExceeded",
84        /// `ReadOnly`.
85        ReadOnly = "ReadOnly",
86        /// `RedirectNotAllowed`.
87        RedirectNotAllowed = "RedirectNotAllowed",
88        /// `TooLargeElement`.
89        TooLargeElement = "TooLargeElement",
90        /// `TooManyElements`.
91        TooManyElements = "TooManyElements",
92        /// `TxInProgress`.
93        TxInProgress = "TxInProgress",
94        /// `TxNotFound`.
95        TxNotFound = "TxNotFound",
96        /// `TxStarted`.
97        TxStarted = "TxStarted",
98        /// `UnknownConnectorId`.
99        UnknownConnectorId = "UnknownConnectorId",
100        /// `UnknownConnectorType`.
101        UnknownConnectorType = "UnknownConnectorType",
102        /// `UnknownEvse`.
103        UnknownEvse = "UnknownEvse",
104        /// `Unspecified`.
105        Unspecified = "Unspecified",
106        /// `UnsupportedKind`.
107        UnsupportedKind = "UnsupportedKind",
108        /// `UnsupportedParam`.
109        UnsupportedParam = "UnsupportedParam",
110        /// `UnsupportedPurpose`.
111        UnsupportedPurpose = "UnsupportedPurpose",
112        /// `UnsupportedRateUnit`.
113        UnsupportedRateUnit = "UnsupportedRateUnit",
114        /// `UnsupportedRequest`.
115        UnsupportedRequest = "UnsupportedRequest",
116        /// `ValueOutOfRange`.
117        ValueOutOfRange = "ValueOutOfRange",
118        /// `ValuePositiveOnly`.
119        ValuePositiveOnly = "ValuePositiveOnly",
120        /// `ValueTooHigh`.
121        ValueTooHigh = "ValueTooHigh",
122        /// `ValueTooLow`.
123        ValueTooLow = "ValueTooLow",
124        /// `ValueZeroNotAllowed`.
125        ValueZeroNotAllowed = "ValueZeroNotAllowed",
126        /// `WriteOnly`.
127        WriteOnly = "WriteOnly",
128    }
129}