rust_ocpp/v2_0_1/messages/heartbeat.rs
1//! HeartBeat
2
3use chrono::DateTime;
4use chrono::Utc;
5
6/// HeartbeatRequest, sent by the Charging Station to the CSMS. No fields are defined.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct HeartbeatRequest {
10 // No fields are defined
11}
12
13/// HeartbeatResponse, sent by the CSMS to the Charging Station in response to a HeartbeatRequest.
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
15#[serde(rename_all = "camelCase")]
16pub struct HeartbeatResponse {
17 /// Contains the current time of the CSMS.
18 pub current_time: DateTime<Utc>,
19}