rust_ocpp/v2_0_1/messages/
status_notification.rs

1use chrono::DateTime;
2use chrono::Utc;
3
4use crate::v2_0_1::enumerations::connector_status_enum_type::ConnectorStatusEnumType;
5
6/// Sent by the Charging Station to the CSMS to request that the Certificate Authority signs the public key into a certificate.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct StatusNotificationRequest {
10    pub timestamp: DateTime<Utc>,
11    pub connector_status: ConnectorStatusEnumType,
12    pub evse_id: i32,
13    pub connector_id: i32,
14}
15
16/// This contains the field definition of StatusNotificationResponse sent by the CSMS to the Charging Station in response to a StatusNotificationRequest. This message is deprecated. This message might be removed in a future version of OCPP. It will be replaced by Device Management Monitoring events.
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
18#[serde(rename_all = "camelCase")]
19pub struct StatusNotificationResponse {}