rust_ocpp/v2_0_1/messages/
set_variable_monitoring.rs

1use crate::v2_0_1::datatypes::set_monitoring_data_type::SetMonitoringDataType;
2use crate::v2_0_1::datatypes::set_monitoring_result_type::SetMonitoringResultType;
3
4/// This contains the field definition of the SetVariableMonitoringRequest 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 SetVariableMonitoringRequest {
8    pub set_monitoring_data: Vec<SetMonitoringDataType>,
9}
10
11/// This contains the field definition of the SetVariableMonitoringResponse PDU sent by the Charging Station to the CSMS in response to a SetVariableMonitoringRequest.
12#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
13#[serde(rename_all = "camelCase")]
14pub struct SetVariableMonitoringResponse {
15    pub set_monitoring_result: Vec<SetMonitoringResultType>,
16}