ocpp/v1_6/dispatch
OCPP 1.6 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)
ChangeAvailabilityRequest(change_availability.Request)
ChangeConfigurationRequest(change_configuration.Request)
ClearCacheRequest(clear_cache.Request)
ClearChargingProfileRequest(clear_charging_profile.Request)
DataTransferRequest(data_transfer.Request)
DiagnosticsStatusNotificationRequest(
diagnostics_status_notification.Request,
)
FirmwareStatusNotificationRequest(
firmware_status_notification.Request,
)
GetCompositeScheduleRequest(get_composite_schedule.Request)
GetConfigurationRequest(get_configuration.Request)
GetDiagnosticsRequest(get_diagnostics.Request)
GetLocalListVersionRequest(get_local_list_version.Request)
HeartbeatRequest(heartbeat.Request)
MeterValuesRequest(meter_values.Request)
RemoteStartTransactionRequest(remote_start_transaction.Request)
RemoteStopTransactionRequest(remote_stop_transaction.Request)
ReserveNowRequest(reserve_now.Request)
ResetRequest(reset.Request)
SendLocalListRequest(send_local_list.Request)
SetChargingProfileRequest(set_charging_profile.Request)
StartTransactionRequest(start_transaction.Request)
StatusNotificationRequest(status_notification.Request)
StopTransactionRequest(stop_transaction.Request)
TriggerMessageRequest(trigger_message.Request)
UnlockConnectorRequest(unlock_connector.Request)
UpdateFirmwareRequest(update_firmware.Request)
}
Constructors
-
AuthorizeRequest(authorize.Request) -
BootNotificationRequest(boot_notification.Request) -
CancelReservationRequest(cancel_reservation.Request) -
ChangeAvailabilityRequest(change_availability.Request) -
ChangeConfigurationRequest(change_configuration.Request) -
ClearCacheRequest(clear_cache.Request) -
ClearChargingProfileRequest(clear_charging_profile.Request) -
DataTransferRequest(data_transfer.Request) -
DiagnosticsStatusNotificationRequest( diagnostics_status_notification.Request, ) -
FirmwareStatusNotificationRequest( firmware_status_notification.Request, ) -
GetCompositeScheduleRequest(get_composite_schedule.Request) -
GetConfigurationRequest(get_configuration.Request) -
GetDiagnosticsRequest(get_diagnostics.Request) -
GetLocalListVersionRequest(get_local_list_version.Request) -
HeartbeatRequest(heartbeat.Request) -
MeterValuesRequest(meter_values.Request) -
RemoteStartTransactionRequest(remote_start_transaction.Request) -
RemoteStopTransactionRequest(remote_stop_transaction.Request) -
ReserveNowRequest(reserve_now.Request) -
ResetRequest(reset.Request) -
SendLocalListRequest(send_local_list.Request) -
SetChargingProfileRequest(set_charging_profile.Request) -
StartTransactionRequest(start_transaction.Request) -
StatusNotificationRequest(status_notification.Request) -
StopTransactionRequest(stop_transaction.Request) -
TriggerMessageRequest(trigger_message.Request) -
UnlockConnectorRequest(unlock_connector.Request) -
UpdateFirmwareRequest(update_firmware.Request)
pub type Response {
AuthorizeResponse(authorize.Response)
BootNotificationResponse(boot_notification.Response)
CancelReservationResponse(cancel_reservation.Response)
ChangeAvailabilityResponse(change_availability.Response)
ChangeConfigurationResponse(change_configuration.Response)
ClearCacheResponse(clear_cache.Response)
ClearChargingProfileResponse(clear_charging_profile.Response)
DataTransferResponse(data_transfer.Response)
DiagnosticsStatusNotificationResponse(
diagnostics_status_notification.Response,
)
FirmwareStatusNotificationResponse(
firmware_status_notification.Response,
)
GetCompositeScheduleResponse(get_composite_schedule.Response)
GetConfigurationResponse(get_configuration.Response)
GetDiagnosticsResponse(get_diagnostics.Response)
GetLocalListVersionResponse(get_local_list_version.Response)
HeartbeatResponse(heartbeat.Response)
MeterValuesResponse(meter_values.Response)
RemoteStartTransactionResponse(
remote_start_transaction.Response,
)
RemoteStopTransactionResponse(remote_stop_transaction.Response)
ReserveNowResponse(reserve_now.Response)
ResetResponse(reset.Response)
SendLocalListResponse(send_local_list.Response)
SetChargingProfileResponse(set_charging_profile.Response)
StartTransactionResponse(start_transaction.Response)
StatusNotificationResponse(status_notification.Response)
StopTransactionResponse(stop_transaction.Response)
TriggerMessageResponse(trigger_message.Response)
UnlockConnectorResponse(unlock_connector.Response)
UpdateFirmwareResponse(update_firmware.Response)
}
Constructors
-
AuthorizeResponse(authorize.Response) -
BootNotificationResponse(boot_notification.Response) -
CancelReservationResponse(cancel_reservation.Response) -
ChangeAvailabilityResponse(change_availability.Response) -
ChangeConfigurationResponse(change_configuration.Response) -
ClearCacheResponse(clear_cache.Response) -
ClearChargingProfileResponse(clear_charging_profile.Response) -
DataTransferResponse(data_transfer.Response) -
DiagnosticsStatusNotificationResponse( diagnostics_status_notification.Response, ) -
FirmwareStatusNotificationResponse( firmware_status_notification.Response, ) -
GetCompositeScheduleResponse(get_composite_schedule.Response) -
GetConfigurationResponse(get_configuration.Response) -
GetDiagnosticsResponse(get_diagnostics.Response) -
GetLocalListVersionResponse(get_local_list_version.Response) -
HeartbeatResponse(heartbeat.Response) -
MeterValuesResponse(meter_values.Response) -
RemoteStartTransactionResponse(remote_start_transaction.Response) -
RemoteStopTransactionResponse(remote_stop_transaction.Response) -
ReserveNowResponse(reserve_now.Response) -
ResetResponse(reset.Response) -
SendLocalListResponse(send_local_list.Response) -
SetChargingProfileResponse(set_charging_profile.Response) -
StartTransactionResponse(start_transaction.Response) -
StatusNotificationResponse(status_notification.Response) -
StopTransactionResponse(stop_transaction.Response) -
TriggerMessageResponse(trigger_message.Response) -
UnlockConnectorResponse(unlock_connector.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)