ocpp_types/v16/
heartbeat_response.rs1#[derive(Debug, Clone, PartialEq, Eq)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct HeartbeatResponse {
7 #[cfg_attr(feature = "serde", serde(rename = "currentTime"))]
8 pub current_time: crate::OcppTimestamp,
9}
10impl crate::Action for HeartbeatResponse {
11 const ACTION: &'static str = "Heartbeat";
12}
13#[cfg(feature = "validate")]
14impl crate::validate::Validate for HeartbeatResponse {
15 fn validate(&self) -> Result<(), crate::validate::ValidationError> {
16 Ok(())
17 }
18}