rust_ocpp/v2_0_1/messages/
set_monitoring_base.rs

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