#[non_exhaustive]pub enum CsResponse {
Show 36 variants
Authorize(AuthorizeResponse),
BatterySwap(BatterySwapResponse),
BootNotification(BootNotificationResponse),
ClearedChargingLimit(ClearedChargingLimitResponse),
ClosePeriodicEventStream(ClosePeriodicEventStreamResponse),
DataTransfer(DataTransferResponse),
FirmwareStatusNotification(FirmwareStatusNotificationResponse),
Get15118EVCertificate(Get15118EVCertificateResponse),
GetCertificateChainStatus(GetCertificateChainStatusResponse),
GetCertificateStatus(GetCertificateStatusResponse),
Heartbeat(HeartbeatResponse),
LogStatusNotification(LogStatusNotificationResponse),
MeterValues(MeterValuesResponse),
NotifyChargingLimit(NotifyChargingLimitResponse),
NotifyCustomerInformation(NotifyCustomerInformationResponse),
NotifyDERAlarm(NotifyDERAlarmResponse),
NotifyDERStartStop(NotifyDERStartStopResponse),
NotifyDisplayMessages(NotifyDisplayMessagesResponse),
NotifyEVChargingNeeds(NotifyEVChargingNeedsResponse),
NotifyEVChargingSchedule(NotifyEVChargingScheduleResponse),
NotifyEvent(NotifyEventResponse),
NotifyMonitoringReport(NotifyMonitoringReportResponse),
NotifyPriorityCharging(NotifyPriorityChargingResponse),
NotifyReport(NotifyReportResponse),
NotifySettlement(NotifySettlementResponse),
OpenPeriodicEventStream(OpenPeriodicEventStreamResponse),
PublishFirmwareStatusNotification(PublishFirmwareStatusNotificationResponse),
PullDynamicScheduleUpdate(PullDynamicScheduleUpdateResponse),
ReportChargingProfiles(ReportChargingProfilesResponse),
ReportDERControl(ReportDERControlResponse),
ReservationStatusUpdate(ReservationStatusUpdateResponse),
SecurityEventNotification(SecurityEventNotificationResponse),
SignCertificate(SignCertificateResponse),
StatusNotification(StatusNotificationResponse),
TransactionEvent(TransactionEventResponse),
VatNumberValidation(VatNumberValidationResponse),
}Expand description
The CSMS’s answer to a CsRequest (CSMS → CS) in OCPP 2.1.
SEND-only actions have no response and are therefore absent from this enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Authorize(AuthorizeResponse)
Authorize.
BatterySwap(BatterySwapResponse)
BatterySwap.
BootNotification(BootNotificationResponse)
BootNotification.
ClearedChargingLimit(ClearedChargingLimitResponse)
ClearedChargingLimit.
ClosePeriodicEventStream(ClosePeriodicEventStreamResponse)
ClosePeriodicEventStream.
DataTransfer(DataTransferResponse)
DataTransfer.
FirmwareStatusNotification(FirmwareStatusNotificationResponse)
FirmwareStatusNotification.
Get15118EVCertificate(Get15118EVCertificateResponse)
Get15118EVCertificate.
GetCertificateChainStatus(GetCertificateChainStatusResponse)
GetCertificateChainStatus.
GetCertificateStatus(GetCertificateStatusResponse)
GetCertificateStatus.
Heartbeat(HeartbeatResponse)
Heartbeat.
LogStatusNotification(LogStatusNotificationResponse)
LogStatusNotification.
MeterValues(MeterValuesResponse)
MeterValues.
NotifyChargingLimit(NotifyChargingLimitResponse)
NotifyChargingLimit.
NotifyCustomerInformation(NotifyCustomerInformationResponse)
NotifyCustomerInformation.
NotifyDERAlarm(NotifyDERAlarmResponse)
NotifyDERAlarm.
NotifyDERStartStop(NotifyDERStartStopResponse)
NotifyDERStartStop.
NotifyDisplayMessages(NotifyDisplayMessagesResponse)
NotifyDisplayMessages.
NotifyEVChargingNeeds(NotifyEVChargingNeedsResponse)
NotifyEVChargingNeeds.
NotifyEVChargingSchedule(NotifyEVChargingScheduleResponse)
NotifyEVChargingSchedule.
NotifyEvent(NotifyEventResponse)
NotifyEvent.
NotifyMonitoringReport(NotifyMonitoringReportResponse)
NotifyMonitoringReport.
NotifyPriorityCharging(NotifyPriorityChargingResponse)
NotifyPriorityCharging.
NotifyReport(NotifyReportResponse)
NotifyReport.
NotifySettlement(NotifySettlementResponse)
NotifySettlement.
OpenPeriodicEventStream(OpenPeriodicEventStreamResponse)
OpenPeriodicEventStream.
PublishFirmwareStatusNotification(PublishFirmwareStatusNotificationResponse)
PublishFirmwareStatusNotification.
PullDynamicScheduleUpdate(PullDynamicScheduleUpdateResponse)
PullDynamicScheduleUpdate.
ReportChargingProfiles(ReportChargingProfilesResponse)
ReportChargingProfiles.
ReportDERControl(ReportDERControlResponse)
ReportDERControl.
ReservationStatusUpdate(ReservationStatusUpdateResponse)
ReservationStatusUpdate.
SecurityEventNotification(SecurityEventNotificationResponse)
SecurityEventNotification.
SignCertificate(SignCertificateResponse)
SignCertificate.
StatusNotification(StatusNotificationResponse)
StatusNotification.
TransactionEvent(TransactionEventResponse)
TransactionEvent.
VatNumberValidation(VatNumberValidationResponse)
VatNumberValidation.
Implementations§
Source§impl CsResponse
impl CsResponse
Sourcepub fn decode(
action: Action,
payload: &RawValue,
options: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode( action: Action, payload: &RawValue, options: &DecodeOptions, ) -> Result<Self, DecodeError>
Decodes a raw JSON payload for action, classifying every failure so the
caller can answer with the correct OCPP error code.
Trait Implementations§
Source§impl Clone for CsResponse
impl Clone for CsResponse
Source§impl Debug for CsResponse
impl Debug for CsResponse
Source§impl PartialEq for CsResponse
impl PartialEq for CsResponse
Source§impl Serialize for CsResponse
impl Serialize for CsResponse
impl StructuralPartialEq for CsResponse
Source§impl Validate for CsResponse
impl Validate for CsResponse
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.