pub struct NetworkConnectionProfile {
pub ocpp_version: OCPPVersion,
pub ocpp_transport: OCPPTransport,
pub ocpp_csms_url: String,
pub message_timeout: i32,
pub security_profile: i32,
pub ocpp_interface: OCPPInterface,
pub apn: Option<APN>,
pub vpn: Option<VPN>,
pub custom_data: Option<CustomData>,
}Expand description
Communication_ Function The NetworkConnectionProfile defines the functional and technical parameters of a communication link.
The OCPP 2.0.1 NetworkConnectionProfile data type.
Fields§
§ocpp_version: OCPPVersionThe ocppVersion member.
ocpp_transport: OCPPTransportThe ocppTransport member.
ocpp_csms_url: StringCommunication_ Function. OCPP_ Central_ System_ URL. URI URL of the CSMS(s) that this Charging Station communicates with.
message_timeout: i32Duration in seconds before a message send by the Charging Station via this network connection times-out. The best setting depends on the underlying network and response times of the CSMS. If you are looking for a some guideline: use 30 seconds as a starting point.
security_profile: i32This field specifies the security profile used when connecting to the CSMS with this NetworkConnectionProfile.
ocpp_interface: OCPPInterfaceThe ocppInterface member.
apn: Option<APN>The apn member.
vpn: Option<VPN>The vpn member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NetworkConnectionProfile
impl NetworkConnectionProfile
Sourcepub fn new(
ocpp_version: OCPPVersion,
ocpp_transport: OCPPTransport,
ocpp_csms_url: impl Into<String>,
message_timeout: i32,
security_profile: i32,
ocpp_interface: OCPPInterface,
) -> Self
pub fn new( ocpp_version: OCPPVersion, ocpp_transport: OCPPTransport, ocpp_csms_url: impl Into<String>, message_timeout: i32, security_profile: i32, ocpp_interface: OCPPInterface, ) -> Self
Creates a NetworkConnectionProfile from its required fields.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for NetworkConnectionProfile
impl Clone for NetworkConnectionProfile
Source§impl Debug for NetworkConnectionProfile
impl Debug for NetworkConnectionProfile
Source§impl<'de> Deserialize<'de> for NetworkConnectionProfile
impl<'de> Deserialize<'de> for NetworkConnectionProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for NetworkConnectionProfile
impl PartialEq for NetworkConnectionProfile
Source§impl Serialize for NetworkConnectionProfile
impl Serialize for NetworkConnectionProfile
impl StructuralPartialEq for NetworkConnectionProfile
Source§impl Validate for NetworkConnectionProfile
impl Validate for NetworkConnectionProfile
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
out, relative to path.