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;
5use crate::v2_0_1::helpers::datetime_rfc3339;
6
7/// Sent by the Charging Station to the CSMS to request that the Certificate Authority signs the public key into a certificate.
8#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
9#[serde(rename_all = "camelCase")]
10pub struct StatusNotificationRequest {
11    #[serde(with = "datetime_rfc3339 ")]
12    pub timestamp: DateTime<Utc>,
13    pub connector_status: ConnectorStatusEnumType,
14    pub evse_id: i32,
15    pub connector_id: i32,
16}
17
18/// 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.
19#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
20#[serde(rename_all = "camelCase")]
21pub struct StatusNotificationResponse {}