rust_ocpp/v2_0_1/messages/
set_monitoring_level.rs

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