rust_ocpp/v2_0_1/messages/
set_network_profile.rs

1use crate::v2_0_1::datatypes::network_connection_profile_type::NetworkConnectionProfileType;
2use crate::v2_0_1::datatypes::status_info_type::StatusInfoType;
3use crate::v2_0_1::enumerations::set_network_profile_status_enum_type::SetNetworkProfileStatusEnumType;
4
5/// With this message the CSMS gains the ability to configure the connection data (e.g. CSMS URL, OCPP version, APN, etc) on a Charging Station.
6#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
7#[serde(rename_all = "camelCase")]
8pub struct SetNetworkProfileRequest {
9    pub configuration_slot: i32,
10    pub connection_data: NetworkConnectionProfileType,
11}
12
13/// This contains the field definition of the SetNetworkProfileResponse PDU sent by the Charging Station to the CSMS in response to a SetNetworkProfileRequest.
14#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
15#[serde(rename_all = "camelCase")]
16pub struct SetNetworkProfileResponse {
17    pub status: SetNetworkProfileStatusEnumType,
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub status_info: Option<StatusInfoType>,
20}