ocpp-types 0.3.0

Strongly typed OCPP 1.6J, 2.0.1, and 2.1 message types for Rust. no_std, no alloc, embedded-friendly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// @generated by ocpp-codegen from schemas/. Do not edit by hand -- run
// `scripts/generate.sh` to regenerate; manual changes will be overwritten.

#[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(())
    }
}