#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct HeartbeatResponse {
#[cfg_attr(feature = "serde", serde(rename = "currentTime"))]
pub current_time: crate::OcppTimestamp,
}
impl crate::Action for HeartbeatResponse {
const ACTION: &'static str = "Heartbeat";
}
#[cfg(feature = "validate")]
impl crate::validate::Validate for HeartbeatResponse {
fn validate(&self) -> Result<(), crate::validate::ValidationError> {
Ok(())
}
}