rust_ocpp/v2_0_1/messages/get_transaction_status.rs
1//! GetTransactionStatus
2
3/// With this message, the CSMS can ask the Charging Station whether it has transaction-related messages waiting to be delivered to the CSMS. When a transactionId is provided, only messages for a specific transaction are asked for.
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
5#[serde(rename_all = "camelCase")]
6pub struct GetTransactionStatusRequest {
7 /// The Id of the transaction for which the status isrequested.
8 #[serde(skip_serializing_if = "Option::is_none")]
9 pub transaction_id: Option<String>,
10}
11
12/// This contains the field definition of the GetReportRequest, PDU sent by the Charging Station to the CSMS.
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
14#[serde(rename_all = "camelCase")]
15pub struct GetTransactionStatusResponse {
16 /// Whether the transaction is still ongoing.
17 #[serde(skip_serializing_if = "Option::is_none")]
18 pub ongoing_indicator: Option<bool>,
19 /// Whether there are still message to be delivered.
20 pub messages_in_queue: bool,
21}