ocpp_kit/v2_1/enums.rs
1// @generated by `cargo xtask codegen` from the vendored OCPP JSON schemas.
2// DO NOT EDIT — re-run the generator instead. CI fails if this file is stale.
3
4//! Enumerations defined by OCPP 2.1, generated from the official JSON schemas.
5
6#![allow(unused_imports, clippy::doc_markdown, clippy::struct_excessive_bools)]
7#![allow(
8 clippy::too_many_lines,
9 clippy::too_many_arguments,
10 clippy::wildcard_imports
11)]
12#![allow(clippy::match_same_arms, clippy::fn_params_excessive_bools)]
13
14use alloc::string::String;
15use alloc::vec::Vec;
16
17use crate::ocpp_enum;
18
19ocpp_enum! {
20 /// Authentication method.
21 APNAuthentication {
22 /// `PAP`.
23 PAP = "PAP",
24 /// `CHAP`.
25 CHAP = "CHAP",
26 /// `NONE`.
27 NONE = "NONE",
28 /// `AUTO`.
29 AUTO = "AUTO",
30 }
31}
32
33ocpp_enum! {
34 /// Attribute type for which value is requested. When absent, default Actual is assumed.
35 Attribute {
36 /// `Actual`.
37 Actual = "Actual",
38 /// `Target`.
39 Target = "Target",
40 /// `MinSet`.
41 MinSet = "MinSet",
42 /// `MaxSet`.
43 MaxSet = "MaxSet",
44 }
45}
46
47impl Default for Attribute {
48 /// Schema default: `Actual`.
49 fn default() -> Self {
50 Self::Actual
51 }
52}
53
54ocpp_enum! {
55 /// Current status of the ID Token.
56 AuthorizationStatus {
57 /// `Accepted`.
58 Accepted = "Accepted",
59 /// `Blocked`.
60 Blocked = "Blocked",
61 /// `ConcurrentTx`.
62 ConcurrentTx = "ConcurrentTx",
63 /// `Expired`.
64 Expired = "Expired",
65 /// `Invalid`.
66 Invalid = "Invalid",
67 /// `NoCredit`.
68 NoCredit = "NoCredit",
69 /// `NotAllowedTypeEVSE`.
70 NotAllowedTypeEVSE = "NotAllowedTypeEVSE",
71 /// `NotAtThisLocation`.
72 NotAtThisLocation = "NotAtThisLocation",
73 /// `NotAtThisTime`.
74 NotAtThisTime = "NotAtThisTime",
75 /// `Unknown`.
76 Unknown = "Unknown",
77 }
78}
79
80ocpp_enum! {
81 /// Certificate status information.
82 /// - if all certificates are valid: return 'Accepted'.
83 /// - if one of the certificates was revoked, return 'CertificateRevoked'.
84 AuthorizeCertificateStatus {
85 /// `Accepted`.
86 Accepted = "Accepted",
87 /// `SignatureError`.
88 SignatureError = "SignatureError",
89 /// `CertificateExpired`.
90 CertificateExpired = "CertificateExpired",
91 /// `CertificateRevoked`.
92 CertificateRevoked = "CertificateRevoked",
93 /// `NoCertificateAvailable`.
94 NoCertificateAvailable = "NoCertificateAvailable",
95 /// `CertChainError`.
96 CertChainError = "CertChainError",
97 /// `ContractCancelled`.
98 ContractCancelled = "ContractCancelled",
99 }
100}
101
102ocpp_enum! {
103 /// Battery in/out
104 BatterySwapEvent {
105 /// `BatteryIn`.
106 BatteryIn = "BatteryIn",
107 /// `BatteryOut`.
108 BatteryOut = "BatteryOut",
109 /// `BatteryOutTimeout`.
110 BatteryOutTimeout = "BatteryOutTimeout",
111 }
112}
113
114ocpp_enum! {
115 /// This contains the reason for sending this message to the CSMS.
116 BootReason {
117 /// `ApplicationReset`.
118 ApplicationReset = "ApplicationReset",
119 /// `FirmwareUpdate`.
120 FirmwareUpdate = "FirmwareUpdate",
121 /// `LocalReset`.
122 LocalReset = "LocalReset",
123 /// `PowerUp`.
124 PowerUp = "PowerUp",
125 /// `RemoteReset`.
126 RemoteReset = "RemoteReset",
127 /// `ScheduledReset`.
128 ScheduledReset = "ScheduledReset",
129 /// `Triggered`.
130 Triggered = "Triggered",
131 /// `Unknown`.
132 Unknown = "Unknown",
133 /// `Watchdog`.
134 Watchdog = "Watchdog",
135 }
136}
137
138ocpp_enum! {
139 /// This indicates the success or failure of the canceling of a reservation by CSMS.
140 CancelReservationStatus {
141 /// `Accepted`.
142 Accepted = "Accepted",
143 /// `Rejected`.
144 Rejected = "Rejected",
145 }
146}
147
148ocpp_enum! {
149 /// Defines whether certificate needs to be installed or updated.
150 CertificateAction {
151 /// `Install`.
152 Install = "Install",
153 /// `Update`.
154 Update = "Update",
155 }
156}
157
158ocpp_enum! {
159 /// Returns whether certificate signing has been accepted, otherwise rejected.
160 CertificateSignedStatus {
161 /// `Accepted`.
162 Accepted = "Accepted",
163 /// `Rejected`.
164 Rejected = "Rejected",
165 }
166}
167
168ocpp_enum! {
169 /// Indicates the type of the signed certificate that is returned. When omitted the certificate is used for both the 15118 connection (if implemented) and the Charging Station to CSMS connection. This field is required when a typeOfCertificate was included in the <<signcertificaterequest,SignCertificateRequest>> that requested this certificate to be signed AND both the 15118 connection and the Charging Station connection are implemented.
170 CertificateSigningUse {
171 /// `ChargingStationCertificate`.
172 ChargingStationCertificate = "ChargingStationCertificate",
173 /// `V2GCertificate`.
174 V2GCertificate = "V2GCertificate",
175 /// `V2G20Certificate`.
176 V2G20Certificate = "V2G20Certificate",
177 }
178}
179
180ocpp_enum! {
181 /// Status of certificate: good, revoked or unknown.
182 CertificateStatusEnum {
183 /// `Good`.
184 Good = "Good",
185 /// `Revoked`.
186 Revoked = "Revoked",
187 /// `Unknown`.
188 Unknown = "Unknown",
189 /// `Failed`.
190 Failed = "Failed",
191 }
192}
193
194ocpp_enum! {
195 /// Source of status: OCSP, CRL
196 CertificateStatusSource {
197 /// `CRL`.
198 CRL = "CRL",
199 /// `OCSP`.
200 OCSP = "OCSP",
201 }
202}
203
204ocpp_enum! {
205 /// This indicates whether the Charging Station is able to perform the availability change.
206 ChangeAvailabilityStatus {
207 /// `Accepted`.
208 Accepted = "Accepted",
209 /// `Rejected`.
210 Rejected = "Rejected",
211 /// `Scheduled`.
212 Scheduled = "Scheduled",
213 }
214}
215
216ocpp_enum! {
217 /// Indicates the kind of schedule.
218 ChargingProfileKind {
219 /// `Absolute`.
220 Absolute = "Absolute",
221 /// `Recurring`.
222 Recurring = "Recurring",
223 /// `Relative`.
224 Relative = "Relative",
225 /// `Dynamic`.
226 Dynamic = "Dynamic",
227 }
228}
229
230ocpp_enum! {
231 /// Specifies to purpose of the charging profiles that will be cleared, if they meet the other criteria in the request.
232 ChargingProfilePurpose {
233 /// `ChargingStationExternalConstraints`.
234 ChargingStationExternalConstraints = "ChargingStationExternalConstraints",
235 /// `ChargingStationMaxProfile`.
236 ChargingStationMaxProfile = "ChargingStationMaxProfile",
237 /// `TxDefaultProfile`.
238 TxDefaultProfile = "TxDefaultProfile",
239 /// `TxProfile`.
240 TxProfile = "TxProfile",
241 /// `PriorityCharging`.
242 PriorityCharging = "PriorityCharging",
243 /// `LocalGeneration`.
244 LocalGeneration = "LocalGeneration",
245 }
246}
247
248ocpp_enum! {
249 /// Result of request.
250 ChargingProfileStatus {
251 /// `Accepted`.
252 Accepted = "Accepted",
253 /// `Rejected`.
254 Rejected = "Rejected",
255 }
256}
257
258ocpp_enum! {
259 /// Can be used to force a power or current profile.
260 ChargingRateUnit {
261 /// `W`.
262 W = "W",
263 /// `A`.
264 A = "A",
265 }
266}
267
268ocpp_enum! {
269 /// Current charging state, is required when state
270 /// has changed. Omitted when there is no communication between EVSE and EV, because no cable is plugged in.
271 ChargingState {
272 /// `EVConnected`.
273 EVConnected = "EVConnected",
274 /// `Charging`.
275 Charging = "Charging",
276 /// `SuspendedEV`.
277 SuspendedEV = "SuspendedEV",
278 /// `SuspendedEVSE`.
279 SuspendedEVSE = "SuspendedEVSE",
280 /// `Idle`.
281 Idle = "Idle",
282 }
283}
284
285ocpp_enum! {
286 /// Accepted if the Charging Station has executed the request, otherwise rejected.
287 ClearCacheStatus {
288 /// `Accepted`.
289 Accepted = "Accepted",
290 /// `Rejected`.
291 Rejected = "Rejected",
292 }
293}
294
295ocpp_enum! {
296 /// Indicates if the Charging Station was able to execute the request.
297 ClearChargingProfileStatus {
298 /// `Accepted`.
299 Accepted = "Accepted",
300 /// `Unknown`.
301 Unknown = "Unknown",
302 }
303}
304
305ocpp_enum! {
306 /// Returns whether the Charging Station has been able to remove the message.
307 ClearMessageStatus {
308 /// `Accepted`.
309 Accepted = "Accepted",
310 /// `Unknown`.
311 Unknown = "Unknown",
312 /// `Rejected`.
313 Rejected = "Rejected",
314 }
315}
316
317ocpp_enum! {
318 /// Result of the clear request for this monitor, identified by its Id.
319 ClearMonitoringStatus {
320 /// `Accepted`.
321 Accepted = "Accepted",
322 /// `Rejected`.
323 Rejected = "Rejected",
324 /// `NotFound`.
325 NotFound = "NotFound",
326 }
327}
328
329ocpp_enum! {
330 /// The OCPP 2.1 `ComponentCriterion` enumeration.
331 ComponentCriterion {
332 /// `Active`.
333 Active = "Active",
334 /// `Available`.
335 Available = "Available",
336 /// `Enabled`.
337 Enabled = "Enabled",
338 /// `Problem`.
339 Problem = "Problem",
340 }
341}
342
343ocpp_enum! {
344 /// This contains the current status of the Connector.
345 ConnectorStatus {
346 /// `Available`.
347 Available = "Available",
348 /// `Occupied`.
349 Occupied = "Occupied",
350 /// `Reserved`.
351 Reserved = "Reserved",
352 /// `Unavailable`.
353 Unavailable = "Unavailable",
354 /// `Faulted`.
355 Faulted = "Faulted",
356 }
357}
358
359ocpp_enum! {
360 /// *(2.1)* Indicates whether EV wants to operate in Dynamic or Scheduled mode. When absent, Scheduled mode is assumed for backwards compatibility. +
361 /// *ISO 15118-20:* +
362 /// ServiceSelectionReq(SelectedEnergyTransferService)
363 ControlMode {
364 /// `ScheduledControl`.
365 ScheduledControl = "ScheduledControl",
366 /// `DynamicControl`.
367 DynamicControl = "DynamicControl",
368 }
369}
370
371ocpp_enum! {
372 /// Type of cost dimension: energy, power, time, etc.
373 CostDimensionEnum {
374 /// `Energy`.
375 Energy = "Energy",
376 /// `MaxCurrent`.
377 MaxCurrent = "MaxCurrent",
378 /// `MinCurrent`.
379 MinCurrent = "MinCurrent",
380 /// `MaxPower`.
381 MaxPower = "MaxPower",
382 /// `MinPower`.
383 MinPower = "MinPower",
384 /// `IdleTIme`.
385 IdleTIme = "IdleTIme",
386 /// `ChargingTime`.
387 ChargingTime = "ChargingTime",
388 }
389}
390
391ocpp_enum! {
392 /// The kind of cost referred to in the message element amount
393 CostKind {
394 /// `CarbonDioxideEmission`.
395 CarbonDioxideEmission = "CarbonDioxideEmission",
396 /// `RelativePricePercentage`.
397 RelativePricePercentage = "RelativePricePercentage",
398 /// `RenewableGenerationPercentage`.
399 RenewableGenerationPercentage = "RenewableGenerationPercentage",
400 }
401}
402
403ocpp_enum! {
404 /// Indicates whether the request was accepted.
405 CustomerInformationStatus {
406 /// `Accepted`.
407 Accepted = "Accepted",
408 /// `Rejected`.
409 Rejected = "Rejected",
410 /// `Invalid`.
411 Invalid = "Invalid",
412 }
413}
414
415ocpp_enum! {
416 /// Name of control settings to clear. Not used when _controlId_ is provided.
417 DERControl {
418 /// `EnterService`.
419 EnterService = "EnterService",
420 /// `FreqDroop`.
421 FreqDroop = "FreqDroop",
422 /// `FreqWatt`.
423 FreqWatt = "FreqWatt",
424 /// `FixedPFAbsorb`.
425 FixedPFAbsorb = "FixedPFAbsorb",
426 /// `FixedPFInject`.
427 FixedPFInject = "FixedPFInject",
428 /// `FixedVar`.
429 FixedVar = "FixedVar",
430 /// `Gradients`.
431 Gradients = "Gradients",
432 /// `HFMustTrip`.
433 HFMustTrip = "HFMustTrip",
434 /// `HFMayTrip`.
435 HFMayTrip = "HFMayTrip",
436 /// `HVMustTrip`.
437 HVMustTrip = "HVMustTrip",
438 /// `HVMomCess`.
439 HVMomCess = "HVMomCess",
440 /// `HVMayTrip`.
441 HVMayTrip = "HVMayTrip",
442 /// `LimitMaxDischarge`.
443 LimitMaxDischarge = "LimitMaxDischarge",
444 /// `LFMustTrip`.
445 LFMustTrip = "LFMustTrip",
446 /// `LVMustTrip`.
447 LVMustTrip = "LVMustTrip",
448 /// `LVMomCess`.
449 LVMomCess = "LVMomCess",
450 /// `LVMayTrip`.
451 LVMayTrip = "LVMayTrip",
452 /// `PowerMonitoringMustTrip`.
453 PowerMonitoringMustTrip = "PowerMonitoringMustTrip",
454 /// `VoltVar`.
455 VoltVar = "VoltVar",
456 /// `VoltWatt`.
457 VoltWatt = "VoltWatt",
458 /// `WattPF`.
459 WattPF = "WattPF",
460 /// `WattVar`.
461 WattVar = "WattVar",
462 }
463}
464
465ocpp_enum! {
466 /// Result of operation.
467 DERControlStatus {
468 /// `Accepted`.
469 Accepted = "Accepted",
470 /// `Rejected`.
471 Rejected = "Rejected",
472 /// `NotSupported`.
473 NotSupported = "NotSupported",
474 /// `NotFound`.
475 NotFound = "NotFound",
476 }
477}
478
479ocpp_enum! {
480 /// Unit of the Y-axis of DER curve
481 DERUnit {
482 /// `Not_Applicable`.
483 NotApplicable = "Not_Applicable",
484 /// `PctMaxW`.
485 PctMaxW = "PctMaxW",
486 /// `PctMaxVar`.
487 PctMaxVar = "PctMaxVar",
488 /// `PctWAvail`.
489 PctWAvail = "PctWAvail",
490 /// `PctVarAvail`.
491 PctVarAvail = "PctVarAvail",
492 /// `PctEffectiveV`.
493 PctEffectiveV = "PctEffectiveV",
494 }
495}
496
497ocpp_enum! {
498 /// Data type of this variable.
499 Data {
500 /// `string`.
501 String = "string",
502 /// `decimal`.
503 Decimal = "decimal",
504 /// `integer`.
505 Integer = "integer",
506 /// `dateTime`.
507 DateTime = "dateTime",
508 /// `boolean`.
509 Boolean = "boolean",
510 /// `OptionList`.
511 OptionList = "OptionList",
512 /// `SequenceList`.
513 SequenceList = "SequenceList",
514 /// `MemberList`.
515 MemberList = "MemberList",
516 }
517}
518
519ocpp_enum! {
520 /// This indicates the success or failure of the data transfer.
521 DataTransferStatus {
522 /// `Accepted`.
523 Accepted = "Accepted",
524 /// `Rejected`.
525 Rejected = "Rejected",
526 /// `UnknownMessageId`.
527 UnknownMessageId = "UnknownMessageId",
528 /// `UnknownVendorId`.
529 UnknownVendorId = "UnknownVendorId",
530 }
531}
532
533ocpp_enum! {
534 /// The OCPP 2.1 `DayOfWeek` enumeration.
535 DayOfWeek {
536 /// `Monday`.
537 Monday = "Monday",
538 /// `Tuesday`.
539 Tuesday = "Tuesday",
540 /// `Wednesday`.
541 Wednesday = "Wednesday",
542 /// `Thursday`.
543 Thursday = "Thursday",
544 /// `Friday`.
545 Friday = "Friday",
546 /// `Saturday`.
547 Saturday = "Saturday",
548 /// `Sunday`.
549 Sunday = "Sunday",
550 }
551}
552
553ocpp_enum! {
554 /// Charging Station indicates if it can process the request.
555 DeleteCertificateStatus {
556 /// `Accepted`.
557 Accepted = "Accepted",
558 /// `Failed`.
559 Failed = "Failed",
560 /// `NotFound`.
561 NotFound = "NotFound",
562 }
563}
564
565ocpp_enum! {
566 /// This indicates whether the Charging Station is able to display the message.
567 DisplayMessageStatus {
568 /// `Accepted`.
569 Accepted = "Accepted",
570 /// `NotSupportedMessageFormat`.
571 NotSupportedMessageFormat = "NotSupportedMessageFormat",
572 /// `Rejected`.
573 Rejected = "Rejected",
574 /// `NotSupportedPriority`.
575 NotSupportedPriority = "NotSupportedPriority",
576 /// `NotSupportedState`.
577 NotSupportedState = "NotSupportedState",
578 /// `UnknownTransaction`.
579 UnknownTransaction = "UnknownTransaction",
580 /// `LanguageNotSupported`.
581 LanguageNotSupported = "LanguageNotSupported",
582 }
583}
584
585ocpp_enum! {
586 /// Mode of energy transfer requested by the EV.
587 EnergyTransferMode {
588 /// `AC_single_phase`.
589 ACSinglePhase = "AC_single_phase",
590 /// `AC_two_phase`.
591 ACTwoPhase = "AC_two_phase",
592 /// `AC_three_phase`.
593 ACThreePhase = "AC_three_phase",
594 /// `DC`.
595 DC = "DC",
596 /// `AC_BPT`.
597 ACBPT = "AC_BPT",
598 /// `AC_BPT_DER`.
599 ACBPTDER = "AC_BPT_DER",
600 /// `AC_DER`.
601 ACDER = "AC_DER",
602 /// `DC_BPT`.
603 DCBPT = "DC_BPT",
604 /// `DC_ACDP`.
605 DCACDP = "DC_ACDP",
606 /// `DC_ACDP_BPT`.
607 DCACDPBPT = "DC_ACDP_BPT",
608 /// `WPT`.
609 WPT = "WPT",
610 }
611}
612
613ocpp_enum! {
614 /// Specifies the event notification type of the message.
615 EventNotification {
616 /// `HardWiredNotification`.
617 HardWiredNotification = "HardWiredNotification",
618 /// `HardWiredMonitor`.
619 HardWiredMonitor = "HardWiredMonitor",
620 /// `PreconfiguredMonitor`.
621 PreconfiguredMonitor = "PreconfiguredMonitor",
622 /// `CustomMonitor`.
623 CustomMonitor = "CustomMonitor",
624 }
625}
626
627ocpp_enum! {
628 /// Type of trigger for this event, e.g. exceeding a threshold value.
629 EventTrigger {
630 /// `Alerting`.
631 Alerting = "Alerting",
632 /// `Delta`.
633 Delta = "Delta",
634 /// `Periodic`.
635 Periodic = "Periodic",
636 }
637}
638
639ocpp_enum! {
640 /// Type of EVSE (AC, DC) this tariff applies to.
641 EvseKind {
642 /// `AC`.
643 AC = "AC",
644 /// `DC`.
645 DC = "DC",
646 }
647}
648
649ocpp_enum! {
650 /// This contains the progress status of the firmware installation.
651 FirmwareStatus {
652 /// `Downloaded`.
653 Downloaded = "Downloaded",
654 /// `DownloadFailed`.
655 DownloadFailed = "DownloadFailed",
656 /// `Downloading`.
657 Downloading = "Downloading",
658 /// `DownloadScheduled`.
659 DownloadScheduled = "DownloadScheduled",
660 /// `DownloadPaused`.
661 DownloadPaused = "DownloadPaused",
662 /// `Idle`.
663 Idle = "Idle",
664 /// `InstallationFailed`.
665 InstallationFailed = "InstallationFailed",
666 /// `Installing`.
667 Installing = "Installing",
668 /// `Installed`.
669 Installed = "Installed",
670 /// `InstallRebooting`.
671 InstallRebooting = "InstallRebooting",
672 /// `InstallScheduled`.
673 InstallScheduled = "InstallScheduled",
674 /// `InstallVerificationFailed`.
675 InstallVerificationFailed = "InstallVerificationFailed",
676 /// `InvalidSignature`.
677 InvalidSignature = "InvalidSignature",
678 /// `SignatureVerified`.
679 SignatureVerified = "SignatureVerified",
680 }
681}
682
683ocpp_enum! {
684 /// This indicates whether the Charging Station is able to accept this request.
685 GenericDeviceModelStatus {
686 /// `Accepted`.
687 Accepted = "Accepted",
688 /// `Rejected`.
689 Rejected = "Rejected",
690 /// `NotSupported`.
691 NotSupported = "NotSupported",
692 /// `EmptyResultSet`.
693 EmptyResultSet = "EmptyResultSet",
694 }
695}
696
697ocpp_enum! {
698 /// Status of operation.
699 GenericStatus {
700 /// `Accepted`.
701 Accepted = "Accepted",
702 /// `Rejected`.
703 Rejected = "Rejected",
704 }
705}
706
707ocpp_enum! {
708 /// Indicates the type of the requested certificate(s).
709 GetCertificateIdUse {
710 /// `V2GRootCertificate`.
711 V2GRootCertificate = "V2GRootCertificate",
712 /// `MORootCertificate`.
713 MORootCertificate = "MORootCertificate",
714 /// `CSMSRootCertificate`.
715 CSMSRootCertificate = "CSMSRootCertificate",
716 /// `V2GCertificateChain`.
717 V2GCertificateChain = "V2GCertificateChain",
718 /// `ManufacturerRootCertificate`.
719 ManufacturerRootCertificate = "ManufacturerRootCertificate",
720 /// `OEMRootCertificate`.
721 OEMRootCertificate = "OEMRootCertificate",
722 }
723}
724
725ocpp_enum! {
726 /// This indicates whether the charging station was able to retrieve the OCSP certificate status.
727 GetCertificateStatusEnum {
728 /// `Accepted`.
729 Accepted = "Accepted",
730 /// `Failed`.
731 Failed = "Failed",
732 }
733}
734
735ocpp_enum! {
736 /// This indicates whether the Charging Station is able to process this request and will send <<reportchargingprofilesrequest, ReportChargingProfilesRequest>> messages.
737 GetChargingProfileStatus {
738 /// `Accepted`.
739 Accepted = "Accepted",
740 /// `NoProfiles`.
741 NoProfiles = "NoProfiles",
742 }
743}
744
745ocpp_enum! {
746 /// Indicates if the Charging Station has Display Messages that match the request criteria in the <<getdisplaymessagesrequest,GetDisplayMessagesRequest>>
747 GetDisplayMessagesStatus {
748 /// `Accepted`.
749 Accepted = "Accepted",
750 /// `Unknown`.
751 Unknown = "Unknown",
752 }
753}
754
755ocpp_enum! {
756 /// Charging Station indicates if it can process the request.
757 GetInstalledCertificateStatus {
758 /// `Accepted`.
759 Accepted = "Accepted",
760 /// `NotFound`.
761 NotFound = "NotFound",
762 }
763}
764
765ocpp_enum! {
766 /// The OCPP 2.1 `GetVariableStatus` enumeration.
767 GetVariableStatus {
768 /// `Accepted`.
769 Accepted = "Accepted",
770 /// `Rejected`.
771 Rejected = "Rejected",
772 /// `UnknownComponent`.
773 UnknownComponent = "UnknownComponent",
774 /// `UnknownVariable`.
775 UnknownVariable = "UnknownVariable",
776 /// `NotSupportedAttributeType`.
777 NotSupportedAttributeType = "NotSupportedAttributeType",
778 }
779}
780
781ocpp_enum! {
782 /// Type of grid event that caused this
783 GridEventFault {
784 /// `CurrentImbalance`.
785 CurrentImbalance = "CurrentImbalance",
786 /// `LocalEmergency`.
787 LocalEmergency = "LocalEmergency",
788 /// `LowInputPower`.
789 LowInputPower = "LowInputPower",
790 /// `OverCurrent`.
791 OverCurrent = "OverCurrent",
792 /// `OverFrequency`.
793 OverFrequency = "OverFrequency",
794 /// `OverVoltage`.
795 OverVoltage = "OverVoltage",
796 /// `PhaseRotation`.
797 PhaseRotation = "PhaseRotation",
798 /// `RemoteEmergency`.
799 RemoteEmergency = "RemoteEmergency",
800 /// `UnderFrequency`.
801 UnderFrequency = "UnderFrequency",
802 /// `UnderVoltage`.
803 UnderVoltage = "UnderVoltage",
804 /// `VoltageImbalance`.
805 VoltageImbalance = "VoltageImbalance",
806 }
807}
808
809ocpp_enum! {
810 /// Used algorithms for the hashes provided.
811 HashAlgorithm {
812 /// `SHA256`.
813 SHA256 = "SHA256",
814 /// `SHA384`.
815 SHA384 = "SHA384",
816 /// `SHA512`.
817 SHA512 = "SHA512",
818 }
819}
820
821ocpp_enum! {
822 /// Charging Station indicates if installation was successful.
823 InstallCertificateStatus {
824 /// `Accepted`.
825 Accepted = "Accepted",
826 /// `Rejected`.
827 Rejected = "Rejected",
828 /// `Failed`.
829 Failed = "Failed",
830 }
831}
832
833ocpp_enum! {
834 /// Indicates the certificate type that is sent.
835 InstallCertificateUse {
836 /// `V2GRootCertificate`.
837 V2GRootCertificate = "V2GRootCertificate",
838 /// `MORootCertificate`.
839 MORootCertificate = "MORootCertificate",
840 /// `ManufacturerRootCertificate`.
841 ManufacturerRootCertificate = "ManufacturerRootCertificate",
842 /// `CSMSRootCertificate`.
843 CSMSRootCertificate = "CSMSRootCertificate",
844 /// `OEMRootCertificate`.
845 OEMRootCertificate = "OEMRootCertificate",
846 }
847}
848
849ocpp_enum! {
850 /// The OCPP 2.1 `IslandingDetection` enumeration.
851 IslandingDetection {
852 /// `NoAntiIslandingSupport`.
853 NoAntiIslandingSupport = "NoAntiIslandingSupport",
854 /// `RoCoF`.
855 RoCoF = "RoCoF",
856 /// `UVP_OVP`.
857 UVPOVP = "UVP_OVP",
858 /// `UFP_OFP`.
859 UFPOFP = "UFP_OFP",
860 /// `VoltageVectorShift`.
861 VoltageVectorShift = "VoltageVectorShift",
862 /// `ZeroCrossingDetection`.
863 ZeroCrossingDetection = "ZeroCrossingDetection",
864 /// `OtherPassive`.
865 OtherPassive = "OtherPassive",
866 /// `ImpedanceMeasurement`.
867 ImpedanceMeasurement = "ImpedanceMeasurement",
868 /// `ImpedanceAtFrequency`.
869 ImpedanceAtFrequency = "ImpedanceAtFrequency",
870 /// `SlipModeFrequencyShift`.
871 SlipModeFrequencyShift = "SlipModeFrequencyShift",
872 /// `SandiaFrequencyShift`.
873 SandiaFrequencyShift = "SandiaFrequencyShift",
874 /// `SandiaVoltageShift`.
875 SandiaVoltageShift = "SandiaVoltageShift",
876 /// `FrequencyJump`.
877 FrequencyJump = "FrequencyJump",
878 /// `RCLQFactor`.
879 RCLQFactor = "RCLQFactor",
880 /// `OtherActive`.
881 OtherActive = "OtherActive",
882 }
883}
884
885ocpp_enum! {
886 /// Indicates whether the message was processed properly.
887 Iso15118EVCertificateStatus {
888 /// `Accepted`.
889 Accepted = "Accepted",
890 /// `Failed`.
891 Failed = "Failed",
892 }
893}
894
895ocpp_enum! {
896 /// Indicates where the measured value has been sampled. Default = "Outlet"
897 Location {
898 /// `Body`.
899 Body = "Body",
900 /// `Cable`.
901 Cable = "Cable",
902 /// `EV`.
903 EV = "EV",
904 /// `Inlet`.
905 Inlet = "Inlet",
906 /// `Outlet`.
907 Outlet = "Outlet",
908 /// `Upstream`.
909 Upstream = "Upstream",
910 }
911}
912
913impl Default for Location {
914 /// Schema default: `Outlet`.
915 fn default() -> Self {
916 Self::Outlet
917 }
918}
919
920ocpp_enum! {
921 /// This contains the type of log file that the Charging Station
922 /// should send.
923 Log {
924 /// `DiagnosticsLog`.
925 DiagnosticsLog = "DiagnosticsLog",
926 /// `SecurityLog`.
927 SecurityLog = "SecurityLog",
928 /// `DataCollectorLog`.
929 DataCollectorLog = "DataCollectorLog",
930 }
931}
932
933ocpp_enum! {
934 /// This field indicates whether the Charging Station was able to accept the request.
935 LogStatus {
936 /// `Accepted`.
937 Accepted = "Accepted",
938 /// `Rejected`.
939 Rejected = "Rejected",
940 /// `AcceptedCanceled`.
941 AcceptedCanceled = "AcceptedCanceled",
942 }
943}
944
945ocpp_enum! {
946 /// Type of measurement. Default = "Energy.Active.Import.Register"
947 Measurand {
948 /// `Current.Export`.
949 CurrentExport = "Current.Export",
950 /// `Current.Export.Offered`.
951 CurrentExportOffered = "Current.Export.Offered",
952 /// `Current.Export.Minimum`.
953 CurrentExportMinimum = "Current.Export.Minimum",
954 /// `Current.Import`.
955 CurrentImport = "Current.Import",
956 /// `Current.Import.Offered`.
957 CurrentImportOffered = "Current.Import.Offered",
958 /// `Current.Import.Minimum`.
959 CurrentImportMinimum = "Current.Import.Minimum",
960 /// `Current.Offered`.
961 CurrentOffered = "Current.Offered",
962 /// `Display.PresentSOC`.
963 DisplayPresentSOC = "Display.PresentSOC",
964 /// `Display.MinimumSOC`.
965 DisplayMinimumSOC = "Display.MinimumSOC",
966 /// `Display.TargetSOC`.
967 DisplayTargetSOC = "Display.TargetSOC",
968 /// `Display.MaximumSOC`.
969 DisplayMaximumSOC = "Display.MaximumSOC",
970 /// `Display.RemainingTimeToMinimumSOC`.
971 DisplayRemainingTimeToMinimumSOC = "Display.RemainingTimeToMinimumSOC",
972 /// `Display.RemainingTimeToTargetSOC`.
973 DisplayRemainingTimeToTargetSOC = "Display.RemainingTimeToTargetSOC",
974 /// `Display.RemainingTimeToMaximumSOC`.
975 DisplayRemainingTimeToMaximumSOC = "Display.RemainingTimeToMaximumSOC",
976 /// `Display.ChargingComplete`.
977 DisplayChargingComplete = "Display.ChargingComplete",
978 /// `Display.BatteryEnergyCapacity`.
979 DisplayBatteryEnergyCapacity = "Display.BatteryEnergyCapacity",
980 /// `Display.InletHot`.
981 DisplayInletHot = "Display.InletHot",
982 /// `Energy.Active.Export.Interval`.
983 EnergyActiveExportInterval = "Energy.Active.Export.Interval",
984 /// `Energy.Active.Export.Register`.
985 EnergyActiveExportRegister = "Energy.Active.Export.Register",
986 /// `Energy.Active.Import.Interval`.
987 EnergyActiveImportInterval = "Energy.Active.Import.Interval",
988 /// `Energy.Active.Import.Register`.
989 EnergyActiveImportRegister = "Energy.Active.Import.Register",
990 /// `Energy.Active.Import.CableLoss`.
991 EnergyActiveImportCableLoss = "Energy.Active.Import.CableLoss",
992 /// `Energy.Active.Import.LocalGeneration.Register`.
993 EnergyActiveImportLocalGenerationRegister = "Energy.Active.Import.LocalGeneration.Register",
994 /// `Energy.Active.Net`.
995 EnergyActiveNet = "Energy.Active.Net",
996 /// `Energy.Active.Setpoint.Interval`.
997 EnergyActiveSetpointInterval = "Energy.Active.Setpoint.Interval",
998 /// `Energy.Apparent.Export`.
999 EnergyApparentExport = "Energy.Apparent.Export",
1000 /// `Energy.Apparent.Import`.
1001 EnergyApparentImport = "Energy.Apparent.Import",
1002 /// `Energy.Apparent.Net`.
1003 EnergyApparentNet = "Energy.Apparent.Net",
1004 /// `Energy.Reactive.Export.Interval`.
1005 EnergyReactiveExportInterval = "Energy.Reactive.Export.Interval",
1006 /// `Energy.Reactive.Export.Register`.
1007 EnergyReactiveExportRegister = "Energy.Reactive.Export.Register",
1008 /// `Energy.Reactive.Import.Interval`.
1009 EnergyReactiveImportInterval = "Energy.Reactive.Import.Interval",
1010 /// `Energy.Reactive.Import.Register`.
1011 EnergyReactiveImportRegister = "Energy.Reactive.Import.Register",
1012 /// `Energy.Reactive.Net`.
1013 EnergyReactiveNet = "Energy.Reactive.Net",
1014 /// `EnergyRequest.Target`.
1015 EnergyRequestTarget = "EnergyRequest.Target",
1016 /// `EnergyRequest.Minimum`.
1017 EnergyRequestMinimum = "EnergyRequest.Minimum",
1018 /// `EnergyRequest.Maximum`.
1019 EnergyRequestMaximum = "EnergyRequest.Maximum",
1020 /// `EnergyRequest.Minimum.V2X`.
1021 EnergyRequestMinimumV2X = "EnergyRequest.Minimum.V2X",
1022 /// `EnergyRequest.Maximum.V2X`.
1023 EnergyRequestMaximumV2X = "EnergyRequest.Maximum.V2X",
1024 /// `EnergyRequest.Bulk`.
1025 EnergyRequestBulk = "EnergyRequest.Bulk",
1026 /// `Frequency`.
1027 Frequency = "Frequency",
1028 /// `Power.Active.Export`.
1029 PowerActiveExport = "Power.Active.Export",
1030 /// `Power.Active.Import`.
1031 PowerActiveImport = "Power.Active.Import",
1032 /// `Power.Active.Setpoint`.
1033 PowerActiveSetpoint = "Power.Active.Setpoint",
1034 /// `Power.Active.Residual`.
1035 PowerActiveResidual = "Power.Active.Residual",
1036 /// `Power.Export.Minimum`.
1037 PowerExportMinimum = "Power.Export.Minimum",
1038 /// `Power.Export.Offered`.
1039 PowerExportOffered = "Power.Export.Offered",
1040 /// `Power.Factor`.
1041 PowerFactor = "Power.Factor",
1042 /// `Power.Import.Offered`.
1043 PowerImportOffered = "Power.Import.Offered",
1044 /// `Power.Import.Minimum`.
1045 PowerImportMinimum = "Power.Import.Minimum",
1046 /// `Power.Offered`.
1047 PowerOffered = "Power.Offered",
1048 /// `Power.Reactive.Export`.
1049 PowerReactiveExport = "Power.Reactive.Export",
1050 /// `Power.Reactive.Import`.
1051 PowerReactiveImport = "Power.Reactive.Import",
1052 /// `SoC`.
1053 SoC = "SoC",
1054 /// `Voltage`.
1055 Voltage = "Voltage",
1056 /// `Voltage.Minimum`.
1057 VoltageMinimum = "Voltage.Minimum",
1058 /// `Voltage.Maximum`.
1059 VoltageMaximum = "Voltage.Maximum",
1060 }
1061}
1062
1063impl Default for Measurand {
1064 /// Schema default: `Energy.Active.Import.Register`.
1065 fn default() -> Self {
1066 Self::EnergyActiveImportRegister
1067 }
1068}
1069
1070ocpp_enum! {
1071 /// Format of the message.
1072 MessageFormat {
1073 /// `ASCII`.
1074 ASCII = "ASCII",
1075 /// `HTML`.
1076 HTML = "HTML",
1077 /// `URI`.
1078 URI = "URI",
1079 /// `UTF8`.
1080 UTF8 = "UTF8",
1081 /// `QRCODE`.
1082 QRCODE = "QRCODE",
1083 }
1084}
1085
1086ocpp_enum! {
1087 /// If provided the Charging Station shall return Display Messages with the given priority only.
1088 MessagePriority {
1089 /// `AlwaysFront`.
1090 AlwaysFront = "AlwaysFront",
1091 /// `InFront`.
1092 InFront = "InFront",
1093 /// `NormalCycle`.
1094 NormalCycle = "NormalCycle",
1095 }
1096}
1097
1098ocpp_enum! {
1099 /// If provided the Charging Station shall return Display Messages with the given state only.
1100 MessageState {
1101 /// `Charging`.
1102 Charging = "Charging",
1103 /// `Faulted`.
1104 Faulted = "Faulted",
1105 /// `Idle`.
1106 Idle = "Idle",
1107 /// `Unavailable`.
1108 Unavailable = "Unavailable",
1109 /// `Suspended`.
1110 Suspended = "Suspended",
1111 /// `Discharging`.
1112 Discharging = "Discharging",
1113 }
1114}
1115
1116ocpp_enum! {
1117 /// Type of message to be triggered.
1118 MessageTrigger {
1119 /// `BootNotification`.
1120 BootNotification = "BootNotification",
1121 /// `LogStatusNotification`.
1122 LogStatusNotification = "LogStatusNotification",
1123 /// `FirmwareStatusNotification`.
1124 FirmwareStatusNotification = "FirmwareStatusNotification",
1125 /// `Heartbeat`.
1126 Heartbeat = "Heartbeat",
1127 /// `MeterValues`.
1128 MeterValues = "MeterValues",
1129 /// `SignChargingStationCertificate`.
1130 SignChargingStationCertificate = "SignChargingStationCertificate",
1131 /// `SignV2GCertificate`.
1132 SignV2GCertificate = "SignV2GCertificate",
1133 /// `SignV2G20Certificate`.
1134 SignV2G20Certificate = "SignV2G20Certificate",
1135 /// `StatusNotification`.
1136 StatusNotification = "StatusNotification",
1137 /// `TransactionEvent`.
1138 TransactionEvent = "TransactionEvent",
1139 /// `SignCombinedCertificate`.
1140 SignCombinedCertificate = "SignCombinedCertificate",
1141 /// `PublishFirmwareStatusNotification`.
1142 PublishFirmwareStatusNotification = "PublishFirmwareStatusNotification",
1143 /// `CustomTrigger`.
1144 CustomTrigger = "CustomTrigger",
1145 }
1146}
1147
1148ocpp_enum! {
1149 /// *(2.1)* Value of EVCC indicates that EV determines min/target SOC and departure time. +
1150 /// A value of EVCC_SECC indicates that charging station or CSMS may also update min/target SOC and departure time. +
1151 /// *ISO 15118-20:* +
1152 /// ServiceSelectionReq(SelectedEnergyTransferService)
1153 MobilityNeedsMode {
1154 /// `EVCC`.
1155 EVCC = "EVCC",
1156 /// `EVCC_SECC`.
1157 EVCCSECC = "EVCC_SECC",
1158 }
1159}
1160
1161ocpp_enum! {
1162 /// The type of this monitor, e.g. a threshold, delta or periodic monitor.
1163 Monitor {
1164 /// `UpperThreshold`.
1165 UpperThreshold = "UpperThreshold",
1166 /// `LowerThreshold`.
1167 LowerThreshold = "LowerThreshold",
1168 /// `Delta`.
1169 Delta = "Delta",
1170 /// `Periodic`.
1171 Periodic = "Periodic",
1172 /// `PeriodicClockAligned`.
1173 PeriodicClockAligned = "PeriodicClockAligned",
1174 /// `TargetDelta`.
1175 TargetDelta = "TargetDelta",
1176 /// `TargetDeltaRelative`.
1177 TargetDeltaRelative = "TargetDeltaRelative",
1178 }
1179}
1180
1181ocpp_enum! {
1182 /// Specify which monitoring base will be set
1183 MonitoringBase {
1184 /// `All`.
1185 All = "All",
1186 /// `FactoryDefault`.
1187 FactoryDefault = "FactoryDefault",
1188 /// `HardWiredOnly`.
1189 HardWiredOnly = "HardWiredOnly",
1190 }
1191}
1192
1193ocpp_enum! {
1194 /// The OCPP 2.1 `MonitoringCriterion` enumeration.
1195 MonitoringCriterion {
1196 /// `ThresholdMonitoring`.
1197 ThresholdMonitoring = "ThresholdMonitoring",
1198 /// `DeltaMonitoring`.
1199 DeltaMonitoring = "DeltaMonitoring",
1200 /// `PeriodicMonitoring`.
1201 PeriodicMonitoring = "PeriodicMonitoring",
1202 }
1203}
1204
1205ocpp_enum! {
1206 /// Defines the mutability of this attribute. Default is ReadWrite when omitted.
1207 Mutability {
1208 /// `ReadOnly`.
1209 ReadOnly = "ReadOnly",
1210 /// `WriteOnly`.
1211 WriteOnly = "WriteOnly",
1212 /// `ReadWrite`.
1213 ReadWrite = "ReadWrite",
1214 }
1215}
1216
1217impl Default for Mutability {
1218 /// Schema default: `ReadWrite`.
1219 fn default() -> Self {
1220 Self::ReadWrite
1221 }
1222}
1223
1224ocpp_enum! {
1225 /// The OCPP 2.1 `NotifyAllowedEnergyTransferStatus` enumeration.
1226 NotifyAllowedEnergyTransferStatus {
1227 /// `Accepted`.
1228 Accepted = "Accepted",
1229 /// `Rejected`.
1230 Rejected = "Rejected",
1231 }
1232}
1233
1234ocpp_enum! {
1235 /// Returns whether the CSMS has been able to process the message successfully. It does not imply that the evChargingNeeds can be met with the current charging profile.
1236 NotifyEVChargingNeedsStatus {
1237 /// `Accepted`.
1238 Accepted = "Accepted",
1239 /// `Rejected`.
1240 Rejected = "Rejected",
1241 /// `Processing`.
1242 Processing = "Processing",
1243 /// `NoChargingProfile`.
1244 NoChargingProfile = "NoChargingProfile",
1245 }
1246}
1247
1248ocpp_enum! {
1249 /// Applicable Network Interface. Charging Station is allowed to use a different network interface to connect if the given one does not work.
1250 OCPPInterface {
1251 /// `Wired0`.
1252 Wired0 = "Wired0",
1253 /// `Wired1`.
1254 Wired1 = "Wired1",
1255 /// `Wired2`.
1256 Wired2 = "Wired2",
1257 /// `Wired3`.
1258 Wired3 = "Wired3",
1259 /// `Wireless0`.
1260 Wireless0 = "Wireless0",
1261 /// `Wireless1`.
1262 Wireless1 = "Wireless1",
1263 /// `Wireless2`.
1264 Wireless2 = "Wireless2",
1265 /// `Wireless3`.
1266 Wireless3 = "Wireless3",
1267 /// `Any`.
1268 Any = "Any",
1269 }
1270}
1271
1272ocpp_enum! {
1273 /// Defines the transport protocol (e.g. SOAP or JSON). Note: SOAP is not supported in OCPP 2.x, but is supported by earlier versions of OCPP.
1274 OCPPTransport {
1275 /// `SOAP`.
1276 SOAP = "SOAP",
1277 /// `JSON`.
1278 JSON = "JSON",
1279 }
1280}
1281
1282ocpp_enum! {
1283 /// *(2.1)* This field is ignored, since the OCPP version to use is determined during the websocket handshake. The field is only kept for backwards compatibility with the OCPP 2.0.1 JSON schema.
1284 OCPPVersion {
1285 /// `OCPP12`.
1286 OCPP12 = "OCPP12",
1287 /// `OCPP15`.
1288 OCPP15 = "OCPP15",
1289 /// `OCPP16`.
1290 OCPP16 = "OCPP16",
1291 /// `OCPP20`.
1292 OCPP20 = "OCPP20",
1293 /// `OCPP201`.
1294 OCPP201 = "OCPP201",
1295 /// `OCPP21`.
1296 OCPP21 = "OCPP21",
1297 }
1298}
1299
1300ocpp_enum! {
1301 /// *(2.1)* Charging operation mode to use during this time interval. When absent defaults to `ChargingOnly`.
1302 OperationMode {
1303 /// `Idle`.
1304 Idle = "Idle",
1305 /// `ChargingOnly`.
1306 ChargingOnly = "ChargingOnly",
1307 /// `CentralSetpoint`.
1308 CentralSetpoint = "CentralSetpoint",
1309 /// `ExternalSetpoint`.
1310 ExternalSetpoint = "ExternalSetpoint",
1311 /// `ExternalLimits`.
1312 ExternalLimits = "ExternalLimits",
1313 /// `CentralFrequency`.
1314 CentralFrequency = "CentralFrequency",
1315 /// `LocalFrequency`.
1316 LocalFrequency = "LocalFrequency",
1317 /// `LocalLoadBalancing`.
1318 LocalLoadBalancing = "LocalLoadBalancing",
1319 }
1320}
1321
1322ocpp_enum! {
1323 /// This contains the type of availability change that the Charging Station should perform.
1324 OperationalStatus {
1325 /// `Inoperative`.
1326 Inoperative = "Inoperative",
1327 /// `Operative`.
1328 Operative = "Operative",
1329 }
1330}
1331
1332ocpp_enum! {
1333 /// The status of the settlement attempt.
1334 PaymentStatus {
1335 /// `Settled`.
1336 Settled = "Settled",
1337 /// `Canceled`.
1338 Canceled = "Canceled",
1339 /// `Rejected`.
1340 Rejected = "Rejected",
1341 /// `Failed`.
1342 Failed = "Failed",
1343 }
1344}
1345
1346ocpp_enum! {
1347 /// Indicates how the measured value is to be interpreted. For instance between L1 and neutral (L1-N) Please note that not all values of phase are applicable to all Measurands. When phase is absent, the measured value is interpreted as an overall value.
1348 Phase {
1349 /// `L1`.
1350 L1 = "L1",
1351 /// `L2`.
1352 L2 = "L2",
1353 /// `L3`.
1354 L3 = "L3",
1355 /// `N`.
1356 N = "N",
1357 /// `L1-N`.
1358 L1N = "L1-N",
1359 /// `L2-N`.
1360 L2N = "L2-N",
1361 /// `L3-N`.
1362 L3N = "L3-N",
1363 /// `L1-L2`.
1364 L1L2 = "L1-L2",
1365 /// `L2-L3`.
1366 L2L3 = "L2-L3",
1367 /// `L3-L1`.
1368 L3L1 = "L3-L1",
1369 }
1370}
1371
1372ocpp_enum! {
1373 /// Parameter is only sent, if the EV has to feed-in power or reactive power during fault-ride through (FRT) as defined by HVMomCess curve and LVMomCess curve.
1374 PowerDuringCessation {
1375 /// `Active`.
1376 Active = "Active",
1377 /// `Reactive`.
1378 Reactive = "Reactive",
1379 }
1380}
1381
1382ocpp_enum! {
1383 /// *(2.1)* The current preconditioning status of the BMS in the EV. Default value is Unknown.
1384 PreconditioningStatus {
1385 /// `Unknown`.
1386 Unknown = "Unknown",
1387 /// `Ready`.
1388 Ready = "Ready",
1389 /// `NotReady`.
1390 NotReady = "NotReady",
1391 /// `Preconditioning`.
1392 Preconditioning = "Preconditioning",
1393 }
1394}
1395
1396ocpp_enum! {
1397 /// Result of the request.
1398 PriorityChargingStatus {
1399 /// `Accepted`.
1400 Accepted = "Accepted",
1401 /// `Rejected`.
1402 Rejected = "Rejected",
1403 /// `NoProfile`.
1404 NoProfile = "NoProfile",
1405 }
1406}
1407
1408ocpp_enum! {
1409 /// This contains the progress status of the publishfirmware
1410 /// installation.
1411 PublishFirmwareStatus {
1412 /// `Idle`.
1413 Idle = "Idle",
1414 /// `DownloadScheduled`.
1415 DownloadScheduled = "DownloadScheduled",
1416 /// `Downloading`.
1417 Downloading = "Downloading",
1418 /// `Downloaded`.
1419 Downloaded = "Downloaded",
1420 /// `Published`.
1421 Published = "Published",
1422 /// `DownloadFailed`.
1423 DownloadFailed = "DownloadFailed",
1424 /// `DownloadPaused`.
1425 DownloadPaused = "DownloadPaused",
1426 /// `InvalidChecksum`.
1427 InvalidChecksum = "InvalidChecksum",
1428 /// `ChecksumVerified`.
1429 ChecksumVerified = "ChecksumVerified",
1430 /// `PublishFailed`.
1431 PublishFailed = "PublishFailed",
1432 }
1433}
1434
1435ocpp_enum! {
1436 /// Type of detail value: start, end or sample. Default = "Sample.Periodic"
1437 ReadingContext {
1438 /// `Interruption.Begin`.
1439 InterruptionBegin = "Interruption.Begin",
1440 /// `Interruption.End`.
1441 InterruptionEnd = "Interruption.End",
1442 /// `Other`.
1443 Other = "Other",
1444 /// `Sample.Clock`.
1445 SampleClock = "Sample.Clock",
1446 /// `Sample.Periodic`.
1447 SamplePeriodic = "Sample.Periodic",
1448 /// `Transaction.Begin`.
1449 TransactionBegin = "Transaction.Begin",
1450 /// `Transaction.End`.
1451 TransactionEnd = "Transaction.End",
1452 /// `Trigger`.
1453 Trigger = "Trigger",
1454 }
1455}
1456
1457impl Default for ReadingContext {
1458 /// Schema default: `Sample.Periodic`.
1459 fn default() -> Self {
1460 Self::SamplePeriodic
1461 }
1462}
1463
1464ocpp_enum! {
1465 /// 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. +
1466 /// MAY only be omitted when _stoppedReason_ is "Local"
1467 Reason {
1468 /// `DeAuthorized`.
1469 DeAuthorized = "DeAuthorized",
1470 /// `EmergencyStop`.
1471 EmergencyStop = "EmergencyStop",
1472 /// `EnergyLimitReached`.
1473 EnergyLimitReached = "EnergyLimitReached",
1474 /// `EVDisconnected`.
1475 EVDisconnected = "EVDisconnected",
1476 /// `GroundFault`.
1477 GroundFault = "GroundFault",
1478 /// `ImmediateReset`.
1479 ImmediateReset = "ImmediateReset",
1480 /// `MasterPass`.
1481 MasterPass = "MasterPass",
1482 /// `Local`.
1483 Local = "Local",
1484 /// `LocalOutOfCredit`.
1485 LocalOutOfCredit = "LocalOutOfCredit",
1486 /// `Other`.
1487 Other = "Other",
1488 /// `OvercurrentFault`.
1489 OvercurrentFault = "OvercurrentFault",
1490 /// `PowerLoss`.
1491 PowerLoss = "PowerLoss",
1492 /// `PowerQuality`.
1493 PowerQuality = "PowerQuality",
1494 /// `Reboot`.
1495 Reboot = "Reboot",
1496 /// `Remote`.
1497 Remote = "Remote",
1498 /// `SOCLimitReached`.
1499 SOCLimitReached = "SOCLimitReached",
1500 /// `StoppedByEV`.
1501 StoppedByEV = "StoppedByEV",
1502 /// `TimeLimitReached`.
1503 TimeLimitReached = "TimeLimitReached",
1504 /// `Timeout`.
1505 Timeout = "Timeout",
1506 /// `ReqEnergyTransferRejected`.
1507 ReqEnergyTransferRejected = "ReqEnergyTransferRejected",
1508 }
1509}
1510
1511ocpp_enum! {
1512 /// Indicates the start point of a recurrence.
1513 RecurrencyKind {
1514 /// `Daily`.
1515 Daily = "Daily",
1516 /// `Weekly`.
1517 Weekly = "Weekly",
1518 }
1519}
1520
1521ocpp_enum! {
1522 /// This contains whether the Charging Station has been registered
1523 /// within the CSMS.
1524 RegistrationStatus {
1525 /// `Accepted`.
1526 Accepted = "Accepted",
1527 /// `Pending`.
1528 Pending = "Pending",
1529 /// `Rejected`.
1530 Rejected = "Rejected",
1531 }
1532}
1533
1534ocpp_enum! {
1535 /// This field specifies the report base.
1536 ReportBase {
1537 /// `ConfigurationInventory`.
1538 ConfigurationInventory = "ConfigurationInventory",
1539 /// `FullInventory`.
1540 FullInventory = "FullInventory",
1541 /// `SummaryInventory`.
1542 SummaryInventory = "SummaryInventory",
1543 }
1544}
1545
1546ocpp_enum! {
1547 /// Status indicating whether the Charging Station accepts the request to start a transaction.
1548 RequestStartStopStatus {
1549 /// `Accepted`.
1550 Accepted = "Accepted",
1551 /// `Rejected`.
1552 Rejected = "Rejected",
1553 }
1554}
1555
1556ocpp_enum! {
1557 /// The updated reservation status.
1558 ReservationUpdateStatus {
1559 /// `Expired`.
1560 Expired = "Expired",
1561 /// `Removed`.
1562 Removed = "Removed",
1563 /// `NoTransaction`.
1564 NoTransaction = "NoTransaction",
1565 }
1566}
1567
1568ocpp_enum! {
1569 /// This indicates the success or failure of the reservation.
1570 ReserveNowStatus {
1571 /// `Accepted`.
1572 Accepted = "Accepted",
1573 /// `Faulted`.
1574 Faulted = "Faulted",
1575 /// `Occupied`.
1576 Occupied = "Occupied",
1577 /// `Rejected`.
1578 Rejected = "Rejected",
1579 /// `Unavailable`.
1580 Unavailable = "Unavailable",
1581 }
1582}
1583
1584ocpp_enum! {
1585 /// This contains the type of reset that the Charging Station or EVSE should perform.
1586 ResetEnum {
1587 /// `Immediate`.
1588 Immediate = "Immediate",
1589 /// `OnIdle`.
1590 OnIdle = "OnIdle",
1591 /// `ImmediateAndResume`.
1592 ImmediateAndResume = "ImmediateAndResume",
1593 }
1594}
1595
1596ocpp_enum! {
1597 /// This indicates whether the Charging Station is able to perform the reset.
1598 ResetStatus {
1599 /// `Accepted`.
1600 Accepted = "Accepted",
1601 /// `Rejected`.
1602 Rejected = "Rejected",
1603 /// `Scheduled`.
1604 Scheduled = "Scheduled",
1605 }
1606}
1607
1608ocpp_enum! {
1609 /// This indicates whether the Charging Station has successfully received and applied the update of the Local Authorization List.
1610 SendLocalListStatus {
1611 /// `Accepted`.
1612 Accepted = "Accepted",
1613 /// `Failed`.
1614 Failed = "Failed",
1615 /// `VersionMismatch`.
1616 VersionMismatch = "VersionMismatch",
1617 }
1618}
1619
1620ocpp_enum! {
1621 /// Status is OK if a value could be returned. Otherwise this will indicate the reason why a value could not be returned.
1622 SetMonitoringStatus {
1623 /// `Accepted`.
1624 Accepted = "Accepted",
1625 /// `UnknownComponent`.
1626 UnknownComponent = "UnknownComponent",
1627 /// `UnknownVariable`.
1628 UnknownVariable = "UnknownVariable",
1629 /// `UnsupportedMonitorType`.
1630 UnsupportedMonitorType = "UnsupportedMonitorType",
1631 /// `Rejected`.
1632 Rejected = "Rejected",
1633 /// `Duplicate`.
1634 Duplicate = "Duplicate",
1635 }
1636}
1637
1638ocpp_enum! {
1639 /// Result of operation.
1640 SetNetworkProfileStatus {
1641 /// `Accepted`.
1642 Accepted = "Accepted",
1643 /// `Rejected`.
1644 Rejected = "Rejected",
1645 /// `Failed`.
1646 Failed = "Failed",
1647 }
1648}
1649
1650ocpp_enum! {
1651 /// Result status of setting the variable.
1652 SetVariableStatus {
1653 /// `Accepted`.
1654 Accepted = "Accepted",
1655 /// `Rejected`.
1656 Rejected = "Rejected",
1657 /// `UnknownComponent`.
1658 UnknownComponent = "UnknownComponent",
1659 /// `UnknownVariable`.
1660 UnknownVariable = "UnknownVariable",
1661 /// `NotSupportedAttributeType`.
1662 NotSupportedAttributeType = "NotSupportedAttributeType",
1663 /// `RebootRequired`.
1664 RebootRequired = "RebootRequired",
1665 }
1666}
1667
1668ocpp_enum! {
1669 /// Status of the operation
1670 TariffChangeStatus {
1671 /// `Accepted`.
1672 Accepted = "Accepted",
1673 /// `Rejected`.
1674 Rejected = "Rejected",
1675 /// `TooManyElements`.
1676 TooManyElements = "TooManyElements",
1677 /// `ConditionNotSupported`.
1678 ConditionNotSupported = "ConditionNotSupported",
1679 /// `TxNotFound`.
1680 TxNotFound = "TxNotFound",
1681 /// `NoCurrencyChange`.
1682 NoCurrencyChange = "NoCurrencyChange",
1683 }
1684}
1685
1686ocpp_enum! {
1687 /// The OCPP 2.1 `TariffClearStatus` enumeration.
1688 TariffClearStatus {
1689 /// `Accepted`.
1690 Accepted = "Accepted",
1691 /// `Rejected`.
1692 Rejected = "Rejected",
1693 /// `NoTariff`.
1694 NoTariff = "NoTariff",
1695 }
1696}
1697
1698ocpp_enum! {
1699 /// Type of cost: normal or the minimum or maximum cost.
1700 TariffCost {
1701 /// `NormalCost`.
1702 NormalCost = "NormalCost",
1703 /// `MinCost`.
1704 MinCost = "MinCost",
1705 /// `MaxCost`.
1706 MaxCost = "MaxCost",
1707 }
1708}
1709
1710ocpp_enum! {
1711 /// Status of operation
1712 TariffGetStatus {
1713 /// `Accepted`.
1714 Accepted = "Accepted",
1715 /// `Rejected`.
1716 Rejected = "Rejected",
1717 /// `NoTariff`.
1718 NoTariff = "NoTariff",
1719 }
1720}
1721
1722ocpp_enum! {
1723 /// Kind of tariff (driver/default)
1724 TariffKind {
1725 /// `DefaultTariff`.
1726 DefaultTariff = "DefaultTariff",
1727 /// `DriverTariff`.
1728 DriverTariff = "DriverTariff",
1729 }
1730}
1731
1732ocpp_enum! {
1733 /// The OCPP 2.1 `TariffSetStatus` enumeration.
1734 TariffSetStatus {
1735 /// `Accepted`.
1736 Accepted = "Accepted",
1737 /// `Rejected`.
1738 Rejected = "Rejected",
1739 /// `TooManyElements`.
1740 TooManyElements = "TooManyElements",
1741 /// `ConditionNotSupported`.
1742 ConditionNotSupported = "ConditionNotSupported",
1743 /// `DuplicateTariffId`.
1744 DuplicateTariffId = "DuplicateTariffId",
1745 }
1746}
1747
1748ocpp_enum! {
1749 /// This contains the type of this event.
1750 /// The first TransactionEvent of a transaction SHALL contain: "Started" The last TransactionEvent of a transaction SHALL contain: "Ended" All others SHALL contain: "Updated"
1751 TransactionEventEnum {
1752 /// `Ended`.
1753 Ended = "Ended",
1754 /// `Started`.
1755 Started = "Started",
1756 /// `Updated`.
1757 Updated = "Updated",
1758 }
1759}
1760
1761ocpp_enum! {
1762 /// Indicates whether the Charging Station will send the requested notification or not.
1763 TriggerMessageStatus {
1764 /// `Accepted`.
1765 Accepted = "Accepted",
1766 /// `Rejected`.
1767 Rejected = "Rejected",
1768 /// `NotImplemented`.
1769 NotImplemented = "NotImplemented",
1770 }
1771}
1772
1773ocpp_enum! {
1774 /// Reason the Charging Station sends this message to the CSMS
1775 TriggerReason {
1776 /// `AbnormalCondition`.
1777 AbnormalCondition = "AbnormalCondition",
1778 /// `Authorized`.
1779 Authorized = "Authorized",
1780 /// `CablePluggedIn`.
1781 CablePluggedIn = "CablePluggedIn",
1782 /// `ChargingRateChanged`.
1783 ChargingRateChanged = "ChargingRateChanged",
1784 /// `ChargingStateChanged`.
1785 ChargingStateChanged = "ChargingStateChanged",
1786 /// `CostLimitReached`.
1787 CostLimitReached = "CostLimitReached",
1788 /// `Deauthorized`.
1789 Deauthorized = "Deauthorized",
1790 /// `EnergyLimitReached`.
1791 EnergyLimitReached = "EnergyLimitReached",
1792 /// `EVCommunicationLost`.
1793 EVCommunicationLost = "EVCommunicationLost",
1794 /// `EVConnectTimeout`.
1795 EVConnectTimeout = "EVConnectTimeout",
1796 /// `EVDeparted`.
1797 EVDeparted = "EVDeparted",
1798 /// `EVDetected`.
1799 EVDetected = "EVDetected",
1800 /// `LimitSet`.
1801 LimitSet = "LimitSet",
1802 /// `MeterValueClock`.
1803 MeterValueClock = "MeterValueClock",
1804 /// `MeterValuePeriodic`.
1805 MeterValuePeriodic = "MeterValuePeriodic",
1806 /// `OperationModeChanged`.
1807 OperationModeChanged = "OperationModeChanged",
1808 /// `RemoteStart`.
1809 RemoteStart = "RemoteStart",
1810 /// `RemoteStop`.
1811 RemoteStop = "RemoteStop",
1812 /// `ResetCommand`.
1813 ResetCommand = "ResetCommand",
1814 /// `RunningCost`.
1815 RunningCost = "RunningCost",
1816 /// `SignedDataReceived`.
1817 SignedDataReceived = "SignedDataReceived",
1818 /// `SoCLimitReached`.
1819 SoCLimitReached = "SoCLimitReached",
1820 /// `StopAuthorized`.
1821 StopAuthorized = "StopAuthorized",
1822 /// `TariffChanged`.
1823 TariffChanged = "TariffChanged",
1824 /// `TariffNotAccepted`.
1825 TariffNotAccepted = "TariffNotAccepted",
1826 /// `TimeLimitReached`.
1827 TimeLimitReached = "TimeLimitReached",
1828 /// `Trigger`.
1829 Trigger = "Trigger",
1830 /// `TxResumed`.
1831 TxResumed = "TxResumed",
1832 /// `UnlockCommand`.
1833 UnlockCommand = "UnlockCommand",
1834 }
1835}
1836
1837ocpp_enum! {
1838 /// This indicates whether the Charging Station has unlocked the connector.
1839 UnlockStatus {
1840 /// `Unlocked`.
1841 Unlocked = "Unlocked",
1842 /// `UnlockFailed`.
1843 UnlockFailed = "UnlockFailed",
1844 /// `OngoingAuthorizedTransaction`.
1845 OngoingAuthorizedTransaction = "OngoingAuthorizedTransaction",
1846 /// `UnknownConnector`.
1847 UnknownConnector = "UnknownConnector",
1848 }
1849}
1850
1851ocpp_enum! {
1852 /// Indicates whether the Local Controller succeeded in unpublishing the firmware.
1853 UnpublishFirmwareStatus {
1854 /// `DownloadOngoing`.
1855 DownloadOngoing = "DownloadOngoing",
1856 /// `NoFirmware`.
1857 NoFirmware = "NoFirmware",
1858 /// `Unpublished`.
1859 Unpublished = "Unpublished",
1860 }
1861}
1862
1863ocpp_enum! {
1864 /// This contains the type of update (full or differential) of this request.
1865 Update {
1866 /// `Differential`.
1867 Differential = "Differential",
1868 /// `Full`.
1869 Full = "Full",
1870 }
1871}
1872
1873ocpp_enum! {
1874 /// This field indicates whether the Charging Station was able to accept the request.
1875 UpdateFirmwareStatus {
1876 /// `Accepted`.
1877 Accepted = "Accepted",
1878 /// `Rejected`.
1879 Rejected = "Rejected",
1880 /// `AcceptedCanceled`.
1881 AcceptedCanceled = "AcceptedCanceled",
1882 /// `InvalidCertificate`.
1883 InvalidCertificate = "InvalidCertificate",
1884 /// `RevokedCertificate`.
1885 RevokedCertificate = "RevokedCertificate",
1886 }
1887}
1888
1889ocpp_enum! {
1890 /// This contains the status of the log upload.
1891 UploadLogStatus {
1892 /// `BadMessage`.
1893 BadMessage = "BadMessage",
1894 /// `Idle`.
1895 Idle = "Idle",
1896 /// `NotSupportedOperation`.
1897 NotSupportedOperation = "NotSupportedOperation",
1898 /// `PermissionDenied`.
1899 PermissionDenied = "PermissionDenied",
1900 /// `Uploaded`.
1901 Uploaded = "Uploaded",
1902 /// `UploadFailure`.
1903 UploadFailure = "UploadFailure",
1904 /// `Uploading`.
1905 Uploading = "Uploading",
1906 /// `AcceptedCanceled`.
1907 AcceptedCanceled = "AcceptedCanceled",
1908 }
1909}
1910
1911ocpp_enum! {
1912 /// Type of VPN
1913 VPNEnum {
1914 /// `IKEv2`.
1915 IKEv2 = "IKEv2",
1916 /// `IPSec`.
1917 IPSec = "IPSec",
1918 /// `L2TP`.
1919 L2TP = "L2TP",
1920 /// `PPTP`.
1921 PPTP = "PPTP",
1922 }
1923}