rust_ocpp/v1_6/messages/
set_charging_profile.rs

1use crate::v1_6::types::{ChargingProfile, ChargingProfileStatus};
2
3/// This contains the field definition of the SendLocalListRequest PDU sent by the Central System to the Charge Point. If no (empty) local_authorization_list is given and the updateType is Full, all identifications are removed from the list. Requesting a Differential update without (empty) local_authorization_list will have no effect on the list. All idTags in the local_authorization_list MUST be unique, no duplicate values are allowed. See also Send Local List
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
5#[serde(rename_all = "camelCase")]
6pub struct SetChargingProfileRequest {
7    /// Required. The connector to which the charging profile applies. If connectorId = 0, the message contains an overall limit for the Charge Point.
8    pub connector_id: i32,
9    /// Required. The charging profile to be set at the Charge Point.
10    #[serde(rename = "csChargingProfiles")]
11    pub cs_charging_profiles: ChargingProfile,
12}
13
14/// This contains the field definition of the ResetResponse PDU sent by the Charge Point to the Central System inresponse to a ResetRequest PDU. See also Reset
15#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
16#[serde(rename_all = "camelCase")]
17pub struct SetChargingProfileResponse {
18    // Required. This indicates whether the Charge Point is able to perform the reset.
19    pub status: ChargingProfileStatus,
20}