rust_ocpp/v2_0_1/messages/
notify_ev_charging_needs.rs

1//! The Charging Station uses this message to communicate the charging needs as calculated by the EV to the CSMS.
2use crate::v2_0_1::datatypes::charging_needs_type::ChargingNeedsType;
3use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
4use crate::v2_0_1::enumerations::notify_ev_charging_needs_status_enum_type::NotifyEVChargingNeedsStatusEnumType;
5
6/// The Charging Station uses this message to communicate the charging needs as calculated by the EV to the CSMS.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct NotifyEVChargingNeedsRequest {
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub max_schedule_tuples: Option<i32>,
12    pub evse_id: i32,
13    pub charging_needs: ChargingNeedsType,
14}
15
16/// Response to a [`NotifyEVChargingNeedsRequest`]
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
18#[serde(rename_all = "camelCase")]
19pub struct NotifyEVChargingNeedsResponse {
20    pub status: NotifyEVChargingNeedsStatusEnumType,
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub status_info: Option<StatusInfoType>,
23}