rust_ocpp/v1_6/messages/remote_stop_transaction.rs
1use crate::v1_6::types::RemoteStartStopStatus;
2
3/// This contains the field definitions of the RemoteStopTransactionRequest PDU sent to Charge Point by Central System. See also Remote Stop Transaction
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
5#[serde(rename_all = "camelCase")]
6pub struct RemoteStopTransactionRequest {
7 /// Required. The identifier of the transaction which Charge Point is requested to stop.
8 pub transaction_id: i32,
9}
10
11/// This contains the field definitions of the RemoteStopTransactionResponse PDU sent from Charge Point to Central System. See also Remote Stop Transaction
12#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
13#[serde(rename_all = "camelCase")]
14pub struct RemoteStopTransactionResponse {
15 // Required. Status indicating whether Charge Point accepts the request to stop a transaction.
16 pub status: RemoteStartStopStatus,
17}