1 2 3 4 5 6 7 8 9 10 11 12 13 14
use chrono::{DateTime, Utc};
use validator::Validate;
#[derive(serde::Serialize, serde::Deserialize, Validate, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct HeartbeatRequest {}
#[derive(serde::Serialize, serde::Deserialize, Validate, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct HeartbeatResponse {
/// # From OCPP Specification
/// Required. This contains the current time of the Central System.
pub current_time: DateTime<Utc>,
}