rust_ocpp/v2_0_1/messages/
unlock_connector.rs

1use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
2use crate::v2_0_1::enumerations::unlock_status_enum_type::UnlockStatusEnumType;
3
4/// This contains the field definition of the UnlockConnectorRequest PDU sent by the CSMS to the Charging Station.
5#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
6#[serde(rename_all = "camelCase")]
7pub struct UnlockConnectorRequest {
8    pub evse_id: i32,
9    pub connector_id: i32,
10}
11
12/// This contains the field definition of the UnlockConnectorResponse PDU sent by the Charging Station to the CSMS in response to an UnlockConnectorRequest.
13#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
14#[serde(rename_all = "camelCase")]
15pub struct UnlockConnectorResponse {
16    pub status: UnlockStatusEnumType,
17    #[serde(skip_serializing_if = "Option::is_none")]
18    pub status_info: Option<StatusInfoType>,
19}