ocpp/v2_0_1/dispatch
OCPP 2.0.1 action dispatch.
Request/Response union every payload for this version; the
*_decoder/*_to_json functions map an OCPP action string to and from
the matching typed payload. SENDs (response-less) ride in Request.
Types
pub type Request {
AuthorizeRequest(authorize.Request)
BootNotificationRequest(boot_notification.Request)
CancelReservationRequest(cancel_reservation.Request)
CertificateSignedRequest(certificate_signed.Request)
ChangeAvailabilityRequest(change_availability.Request)
ClearCacheRequest(clear_cache.Request)
ClearChargingProfileRequest(clear_charging_profile.Request)
ClearDisplayMessageRequest(clear_display_message.Request)
ClearVariableMonitoringRequest(
clear_variable_monitoring.Request,
)
ClearedChargingLimitRequest(cleared_charging_limit.Request)
CostUpdatedRequest(cost_updated.Request)
CustomerInformationRequest(customer_information.Request)
DataTransferRequest(data_transfer.Request)
DeleteCertificateRequest(delete_certificate.Request)
FirmwareStatusNotificationRequest(
firmware_status_notification.Request,
)
Get15118EvCertificateRequest(get15118_ev_certificate.Request)
GetBaseReportRequest(get_base_report.Request)
GetCertificateStatusRequest(get_certificate_status.Request)
GetChargingProfilesRequest(get_charging_profiles.Request)
GetCompositeScheduleRequest(get_composite_schedule.Request)
GetDisplayMessagesRequest(get_display_messages.Request)
GetInstalledCertificateIdsRequest(
get_installed_certificate_ids.Request,
)
GetLocalListVersionRequest(get_local_list_version.Request)
GetLogRequest(get_log.Request)
GetMonitoringReportRequest(get_monitoring_report.Request)
GetReportRequest(get_report.Request)
GetTransactionStatusRequest(get_transaction_status.Request)
GetVariablesRequest(get_variables.Request)
HeartbeatRequest(heartbeat.Request)
InstallCertificateRequest(install_certificate.Request)
LogStatusNotificationRequest(log_status_notification.Request)
MeterValuesRequest(meter_values.Request)
NotifyChargingLimitRequest(notify_charging_limit.Request)
NotifyCustomerInformationRequest(
notify_customer_information.Request,
)
NotifyDisplayMessagesRequest(notify_display_messages.Request)
NotifyEvChargingNeedsRequest(notify_ev_charging_needs.Request)
NotifyEvChargingScheduleRequest(
notify_ev_charging_schedule.Request,
)
NotifyEventRequest(notify_event.Request)
NotifyMonitoringReportRequest(notify_monitoring_report.Request)
NotifyReportRequest(notify_report.Request)
PublishFirmwareRequest(publish_firmware.Request)
PublishFirmwareStatusNotificationRequest(
publish_firmware_status_notification.Request,
)
ReportChargingProfilesRequest(report_charging_profiles.Request)
RequestStartTransactionRequest(
request_start_transaction.Request,
)
RequestStopTransactionRequest(request_stop_transaction.Request)
ReservationStatusUpdateRequest(
reservation_status_update.Request,
)
ReserveNowRequest(reserve_now.Request)
ResetRequest(reset.Request)
SecurityEventNotificationRequest(
security_event_notification.Request,
)
SendLocalListRequest(send_local_list.Request)
SetChargingProfileRequest(set_charging_profile.Request)
SetDisplayMessageRequest(set_display_message.Request)
SetMonitoringBaseRequest(set_monitoring_base.Request)
SetMonitoringLevelRequest(set_monitoring_level.Request)
SetNetworkProfileRequest(set_network_profile.Request)
SetVariableMonitoringRequest(set_variable_monitoring.Request)
SetVariablesRequest(set_variables.Request)
SignCertificateRequest(sign_certificate.Request)
StatusNotificationRequest(status_notification.Request)
TransactionEventRequest(transaction_event.Request)
TriggerMessageRequest(trigger_message.Request)
UnlockConnectorRequest(unlock_connector.Request)
UnpublishFirmwareRequest(unpublish_firmware.Request)
UpdateFirmwareRequest(update_firmware.Request)
}
Constructors
-
AuthorizeRequest(authorize.Request) -
BootNotificationRequest(boot_notification.Request) -
CancelReservationRequest(cancel_reservation.Request) -
CertificateSignedRequest(certificate_signed.Request) -
ChangeAvailabilityRequest(change_availability.Request) -
ClearCacheRequest(clear_cache.Request) -
ClearChargingProfileRequest(clear_charging_profile.Request) -
ClearDisplayMessageRequest(clear_display_message.Request) -
ClearVariableMonitoringRequest(clear_variable_monitoring.Request) -
ClearedChargingLimitRequest(cleared_charging_limit.Request) -
CostUpdatedRequest(cost_updated.Request) -
CustomerInformationRequest(customer_information.Request) -
DataTransferRequest(data_transfer.Request) -
DeleteCertificateRequest(delete_certificate.Request) -
FirmwareStatusNotificationRequest( firmware_status_notification.Request, ) -
Get15118EvCertificateRequest(get15118_ev_certificate.Request) -
GetBaseReportRequest(get_base_report.Request) -
GetCertificateStatusRequest(get_certificate_status.Request) -
GetChargingProfilesRequest(get_charging_profiles.Request) -
GetCompositeScheduleRequest(get_composite_schedule.Request) -
GetDisplayMessagesRequest(get_display_messages.Request) -
GetInstalledCertificateIdsRequest( get_installed_certificate_ids.Request, ) -
GetLocalListVersionRequest(get_local_list_version.Request) -
GetLogRequest(get_log.Request) -
GetMonitoringReportRequest(get_monitoring_report.Request) -
GetReportRequest(get_report.Request) -
GetTransactionStatusRequest(get_transaction_status.Request) -
GetVariablesRequest(get_variables.Request) -
HeartbeatRequest(heartbeat.Request) -
InstallCertificateRequest(install_certificate.Request) -
LogStatusNotificationRequest(log_status_notification.Request) -
MeterValuesRequest(meter_values.Request) -
NotifyChargingLimitRequest(notify_charging_limit.Request) -
NotifyCustomerInformationRequest( notify_customer_information.Request, ) -
NotifyDisplayMessagesRequest(notify_display_messages.Request) -
NotifyEvChargingNeedsRequest(notify_ev_charging_needs.Request) -
NotifyEvChargingScheduleRequest( notify_ev_charging_schedule.Request, ) -
NotifyEventRequest(notify_event.Request) -
NotifyMonitoringReportRequest(notify_monitoring_report.Request) -
NotifyReportRequest(notify_report.Request) -
PublishFirmwareRequest(publish_firmware.Request) -
PublishFirmwareStatusNotificationRequest( publish_firmware_status_notification.Request, ) -
ReportChargingProfilesRequest(report_charging_profiles.Request) -
RequestStartTransactionRequest(request_start_transaction.Request) -
RequestStopTransactionRequest(request_stop_transaction.Request) -
ReservationStatusUpdateRequest(reservation_status_update.Request) -
ReserveNowRequest(reserve_now.Request) -
ResetRequest(reset.Request) -
SecurityEventNotificationRequest( security_event_notification.Request, ) -
SendLocalListRequest(send_local_list.Request) -
SetChargingProfileRequest(set_charging_profile.Request) -
SetDisplayMessageRequest(set_display_message.Request) -
SetMonitoringBaseRequest(set_monitoring_base.Request) -
SetMonitoringLevelRequest(set_monitoring_level.Request) -
SetNetworkProfileRequest(set_network_profile.Request) -
SetVariableMonitoringRequest(set_variable_monitoring.Request) -
SetVariablesRequest(set_variables.Request) -
SignCertificateRequest(sign_certificate.Request) -
StatusNotificationRequest(status_notification.Request) -
TransactionEventRequest(transaction_event.Request) -
TriggerMessageRequest(trigger_message.Request) -
UnlockConnectorRequest(unlock_connector.Request) -
UnpublishFirmwareRequest(unpublish_firmware.Request) -
UpdateFirmwareRequest(update_firmware.Request)
pub type Response {
AuthorizeResponse(authorize.Response)
BootNotificationResponse(boot_notification.Response)
CancelReservationResponse(cancel_reservation.Response)
CertificateSignedResponse(certificate_signed.Response)
ChangeAvailabilityResponse(change_availability.Response)
ClearCacheResponse(clear_cache.Response)
ClearChargingProfileResponse(clear_charging_profile.Response)
ClearDisplayMessageResponse(clear_display_message.Response)
ClearVariableMonitoringResponse(
clear_variable_monitoring.Response,
)
ClearedChargingLimitResponse(cleared_charging_limit.Response)
CostUpdatedResponse(cost_updated.Response)
CustomerInformationResponse(customer_information.Response)
DataTransferResponse(data_transfer.Response)
DeleteCertificateResponse(delete_certificate.Response)
FirmwareStatusNotificationResponse(
firmware_status_notification.Response,
)
Get15118EvCertificateResponse(get15118_ev_certificate.Response)
GetBaseReportResponse(get_base_report.Response)
GetCertificateStatusResponse(get_certificate_status.Response)
GetChargingProfilesResponse(get_charging_profiles.Response)
GetCompositeScheduleResponse(get_composite_schedule.Response)
GetDisplayMessagesResponse(get_display_messages.Response)
GetInstalledCertificateIdsResponse(
get_installed_certificate_ids.Response,
)
GetLocalListVersionResponse(get_local_list_version.Response)
GetLogResponse(get_log.Response)
GetMonitoringReportResponse(get_monitoring_report.Response)
GetReportResponse(get_report.Response)
GetTransactionStatusResponse(get_transaction_status.Response)
GetVariablesResponse(get_variables.Response)
HeartbeatResponse(heartbeat.Response)
InstallCertificateResponse(install_certificate.Response)
LogStatusNotificationResponse(log_status_notification.Response)
MeterValuesResponse(meter_values.Response)
NotifyChargingLimitResponse(notify_charging_limit.Response)
NotifyCustomerInformationResponse(
notify_customer_information.Response,
)
NotifyDisplayMessagesResponse(notify_display_messages.Response)
NotifyEvChargingNeedsResponse(
notify_ev_charging_needs.Response,
)
NotifyEvChargingScheduleResponse(
notify_ev_charging_schedule.Response,
)
NotifyEventResponse(notify_event.Response)
NotifyMonitoringReportResponse(
notify_monitoring_report.Response,
)
NotifyReportResponse(notify_report.Response)
PublishFirmwareResponse(publish_firmware.Response)
PublishFirmwareStatusNotificationResponse(
publish_firmware_status_notification.Response,
)
ReportChargingProfilesResponse(
report_charging_profiles.Response,
)
RequestStartTransactionResponse(
request_start_transaction.Response,
)
RequestStopTransactionResponse(
request_stop_transaction.Response,
)
ReservationStatusUpdateResponse(
reservation_status_update.Response,
)
ReserveNowResponse(reserve_now.Response)
ResetResponse(reset.Response)
SecurityEventNotificationResponse(
security_event_notification.Response,
)
SendLocalListResponse(send_local_list.Response)
SetChargingProfileResponse(set_charging_profile.Response)
SetDisplayMessageResponse(set_display_message.Response)
SetMonitoringBaseResponse(set_monitoring_base.Response)
SetMonitoringLevelResponse(set_monitoring_level.Response)
SetNetworkProfileResponse(set_network_profile.Response)
SetVariableMonitoringResponse(set_variable_monitoring.Response)
SetVariablesResponse(set_variables.Response)
SignCertificateResponse(sign_certificate.Response)
StatusNotificationResponse(status_notification.Response)
TransactionEventResponse(transaction_event.Response)
TriggerMessageResponse(trigger_message.Response)
UnlockConnectorResponse(unlock_connector.Response)
UnpublishFirmwareResponse(unpublish_firmware.Response)
UpdateFirmwareResponse(update_firmware.Response)
}
Constructors
-
AuthorizeResponse(authorize.Response) -
BootNotificationResponse(boot_notification.Response) -
CancelReservationResponse(cancel_reservation.Response) -
CertificateSignedResponse(certificate_signed.Response) -
ChangeAvailabilityResponse(change_availability.Response) -
ClearCacheResponse(clear_cache.Response) -
ClearChargingProfileResponse(clear_charging_profile.Response) -
ClearDisplayMessageResponse(clear_display_message.Response) -
ClearVariableMonitoringResponse( clear_variable_monitoring.Response, ) -
ClearedChargingLimitResponse(cleared_charging_limit.Response) -
CostUpdatedResponse(cost_updated.Response) -
CustomerInformationResponse(customer_information.Response) -
DataTransferResponse(data_transfer.Response) -
DeleteCertificateResponse(delete_certificate.Response) -
FirmwareStatusNotificationResponse( firmware_status_notification.Response, ) -
Get15118EvCertificateResponse(get15118_ev_certificate.Response) -
GetBaseReportResponse(get_base_report.Response) -
GetCertificateStatusResponse(get_certificate_status.Response) -
GetChargingProfilesResponse(get_charging_profiles.Response) -
GetCompositeScheduleResponse(get_composite_schedule.Response) -
GetDisplayMessagesResponse(get_display_messages.Response) -
GetInstalledCertificateIdsResponse( get_installed_certificate_ids.Response, ) -
GetLocalListVersionResponse(get_local_list_version.Response) -
GetLogResponse(get_log.Response) -
GetMonitoringReportResponse(get_monitoring_report.Response) -
GetReportResponse(get_report.Response) -
GetTransactionStatusResponse(get_transaction_status.Response) -
GetVariablesResponse(get_variables.Response) -
HeartbeatResponse(heartbeat.Response) -
InstallCertificateResponse(install_certificate.Response) -
LogStatusNotificationResponse(log_status_notification.Response) -
MeterValuesResponse(meter_values.Response) -
NotifyChargingLimitResponse(notify_charging_limit.Response) -
NotifyCustomerInformationResponse( notify_customer_information.Response, ) -
NotifyDisplayMessagesResponse(notify_display_messages.Response) -
NotifyEvChargingNeedsResponse(notify_ev_charging_needs.Response) -
NotifyEvChargingScheduleResponse( notify_ev_charging_schedule.Response, ) -
NotifyEventResponse(notify_event.Response) -
NotifyMonitoringReportResponse(notify_monitoring_report.Response) -
NotifyReportResponse(notify_report.Response) -
PublishFirmwareResponse(publish_firmware.Response) -
PublishFirmwareStatusNotificationResponse( publish_firmware_status_notification.Response, ) -
ReportChargingProfilesResponse(report_charging_profiles.Response) -
RequestStartTransactionResponse( request_start_transaction.Response, ) -
RequestStopTransactionResponse(request_stop_transaction.Response) -
ReservationStatusUpdateResponse( reservation_status_update.Response, ) -
ReserveNowResponse(reserve_now.Response) -
ResetResponse(reset.Response) -
SecurityEventNotificationResponse( security_event_notification.Response, ) -
SendLocalListResponse(send_local_list.Response) -
SetChargingProfileResponse(set_charging_profile.Response) -
SetDisplayMessageResponse(set_display_message.Response) -
SetMonitoringBaseResponse(set_monitoring_base.Response) -
SetMonitoringLevelResponse(set_monitoring_level.Response) -
SetNetworkProfileResponse(set_network_profile.Response) -
SetVariableMonitoringResponse(set_variable_monitoring.Response) -
SetVariablesResponse(set_variables.Response) -
SignCertificateResponse(sign_certificate.Response) -
StatusNotificationResponse(status_notification.Response) -
TransactionEventResponse(transaction_event.Response) -
TriggerMessageResponse(trigger_message.Response) -
UnlockConnectorResponse(unlock_connector.Response) -
UnpublishFirmwareResponse(unpublish_firmware.Response) -
UpdateFirmwareResponse(update_firmware.Response)
Values
pub fn request_decoder(
action: String,
) -> Result(decode.Decoder(Request), Nil)
pub fn response_decoder(
action: String,
) -> Result(decode.Decoder(Response), Nil)