rust_ocpp/v2_0_1/messages/
security_event_notification.rs

1use chrono::DateTime;
2use chrono::Utc;
3
4/// Sent by the Charging Station to the CSMS in case of a security event.
5#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
6#[serde(rename_all = "camelCase")]
7pub struct SecurityEventNotificationRequest {
8    #[serde(rename = "type")]
9    pub kind: String,
10    pub timestamp: DateTime<Utc>,
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub tech_info: Option<String>,
13}
14
15/// Sent by the CSMS to the Charging Station to confirm the receipt of a SecurityEventNotificationRequest message. No fields are defined.
16#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
17#[serde(rename_all = "camelCase")]
18pub struct SecurityEventNotificationResponse {}