pub struct NetworkConnectionProfile {
pub ocpp_interface: OCPPInterface,
pub ocpp_transport: OCPPTransport,
pub message_timeout: i32,
pub ocpp_csms_url: String,
pub security_profile: i32,
pub apn: Option<APN>,
pub ocpp_version: Option<OCPPVersion>,
pub identity: Option<String>,
pub basic_auth_password: Option<String>,
pub vpn: Option<VPN>,
pub custom_data: Option<CustomData>,
}Expand description
The NetworkConnectionProfile defines the functional and technical parameters of a communication link.
The OCPP 2.1 NetworkConnectionProfile data type.
Fields§
§ocpp_interface: OCPPInterfaceThe ocppInterface member.
ocpp_transport: OCPPTransportThe ocppTransport member.
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.
ocpp_csms_url: StringURL of the CSMS(s) that this Charging Station communicates with, without the Charging Station identity part. + The SecurityCtrlr.Identity field is appended to ocppCsmsUrl to provide the full websocket URL.
security_profile: i32This field specifies the security profile used when connecting to the CSMS with this NetworkConnectionProfile.
apn: Option<APN>The apn member.
ocpp_version: Option<OCPPVersion>The ocppVersion member.
identity: Option<String>(2.1) Charging Station identity to be used as the basic authentication username.
basic_auth_password: Option<String>(2.1) BasicAuthPassword to use for security profile 1 or 2.
vpn: Option<VPN>The vpn member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl NetworkConnectionProfile
impl NetworkConnectionProfile
Sourcepub fn new(
ocpp_interface: OCPPInterface,
ocpp_transport: OCPPTransport,
message_timeout: i32,
ocpp_csms_url: impl Into<String>,
security_profile: i32,
) -> Self
pub fn new( ocpp_interface: OCPPInterface, ocpp_transport: OCPPTransport, message_timeout: i32, ocpp_csms_url: impl Into<String>, security_profile: i32, ) -> Self
Creates a NetworkConnectionProfile from its required fields.
Sourcepub fn with_ocpp_version(self, value: OCPPVersion) -> Self
pub fn with_ocpp_version(self, value: OCPPVersion) -> Self
Sets the optional ocppVersion field.
Sourcepub fn with_identity(self, value: impl Into<String>) -> Self
pub fn with_identity(self, value: impl Into<String>) -> Self
Sets the optional identity field.
Sourcepub fn with_basic_auth_password(self, value: impl Into<String>) -> Self
pub fn with_basic_auth_password(self, value: impl Into<String>) -> Self
Sets the optional basicAuthPassword field.
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§fn clone(&self) -> NetworkConnectionProfile
fn clone(&self) -> NetworkConnectionProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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.