rust_ocpp/v2_0_1/messages/
get_variables.rs

1//! GetVariables
2
3use crate::v2_0_1::datatypes::get_variable_data_type::GetVariableDataType;
4use crate::v2_0_1::datatypes::get_variable_result_type::GetVariableResultType;
5
6/// GetVariablesRequest, sent by the CSMS to the Charging Station.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct GetVariablesRequest {
10    /// List of requested variables.
11    pub get_variable_data: Vec<GetVariableDataType>,
12}
13
14/// GetVariablesResponse, sent by the CSMS to the Charging Station in response to GetVariablesRequest.
15#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
16#[serde(rename_all = "camelCase")]
17pub struct GetVariablesResponse {
18    /// List of requested variables and their values.
19    pub get_variable_result: Vec<GetVariableResultType>,
20}