rust_ocpp/v2_0_1/messages/
send_local_list.rs

1use crate::v2_0_1::datatypes::authorization_data::AuthorizationData;
2use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
3use crate::v2_0_1::enumerations::send_local_list_status_enum_type::SendLocalListStatusEnumType;
4use crate::v2_0_1::enumerations::update_enum_type::UpdateEnumType;
5
6/// This contains the field definition of the SendLocalListRequest PDU sent by the CSMS to the Charging Station. If no (empty) local_authorization_list is given and the updateType is Full, all IdTokens are removed from the list. Requesting a Differential update without or with empty local_authorization_list will have no effect on the list. All IdTokens in the local_authorization_list MUST be unique, no duplicate values are allowed.
7#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct SendLocalListRequest {
10    pub version_number: i32,
11    pub update_type: UpdateEnumType,
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub local_authorization_list: Option<Vec<AuthorizationData>>,
14}
15
16/// Sent by the CSMS to the Charging Station to confirm the receipt of a SecurityEventNotificationRequest message. No fields are defined.
17#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
18#[serde(rename_all = "camelCase")]
19pub struct SendLocalListResponse {
20    pub status: SendLocalListStatusEnumType,
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub status_info: Option<StatusInfoType>,
23}