rust_ocpp/v1_6/messages/
reset.rs

1use crate::v1_6::types::{ResetRequestStatus, ResetResponseStatus};
2
3/// This contains the field definition of the ResetRequest PDU sent by the Central System to the Charge Point. See also Reset
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
5#[serde(rename_all = "camelCase")]
6pub struct ResetRequest {
7    /// Required. This contains the type of reset that the Charge Point should perform.
8    #[serde(rename = "type")]
9    pub kind: ResetRequestStatus,
10}
11
12/// This contains the field definition of the ResetResponse PDU sent by the Charge Point to the Central System inresponse to a ResetRequest PDU. See also Reset
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
14#[serde(rename_all = "camelCase")]
15pub struct ResetResponse {
16    // Required. This indicates whether the Charge Point is able to perform the reset.
17    pub status: ResetResponseStatus,
18}