rust_ocpp/v2_0_1/messages/
notify_customer_information.rs

1use chrono::DateTime;
2use chrono::Utc;
3
4use crate::v2_0_1::helpers::datetime_rfc3339;
5
6/// This contains the field definition of the NotifyCustomerInformationRequest PDU sent by the Charging Station to the CSMS.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct NotifyCustomerInformationRequest {
10    pub data: String,
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub tbc: Option<bool>,
13    pub seq_no: i32,
14    #[serde(with = "datetime_rfc3339 ")]
15    pub generated_at: DateTime<Utc>,
16    pub request_id: i32,
17}
18
19/// The NotifyChargingLimitResponse message is sent by the CSMS to the Charging Station in response to a NotifyChargingLimitsRequest. No fields are defined.
20#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
21#[serde(rename_all = "camelCase")]
22pub struct NotifyCustomerInformationResponse {}