rust_ocpp/v2_0_1/messages/
set_variables.rs

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