pub struct CommunicationChannel {
pub qualifier: Box<str>,
pub address: Box<str>,
}Expand description
A single communication channel extracted from a PARTIN COM segment.
PARTIN allows up to 5 COM segments per party. The qualifier uses the
UN/EDIFACT DE 3155 code list:
| Qualifier | Meaning |
|---|---|
EM | Electronic mail (primary) |
AK | Electronic mail (alternative) |
TE | Telephone |
FX | Fax |
AS4 | BDEW AS4 endpoint URL (non-standard extension) |
AW | BDEW API-Webdienste Strom endpoint URL (Verzeichnisdienst-discovered) |
Note: BDEW uses qualifier
AKfor the AS4 endpoint URL in PARTIN AHB 1.0f. TheAS4literal is used here as an explicit semantic label for channels that have already been identified as AS4 endpoints.
AWis a project-internal qualifier used to store the API-Webdienste Strom base URL discovered from the BDEW Verzeichnisdienst.
Fields§
§qualifier: Box<str>DE 3155 communication qualifier (EM, TE, FX, AK, …).
address: Box<str>The communication address (URL, email address, phone number).
Implementations§
Source§impl CommunicationChannel
impl CommunicationChannel
Sourcepub fn new(qualifier: impl Into<Box<str>>, address: impl Into<Box<str>>) -> Self
pub fn new(qualifier: impl Into<Box<str>>, address: impl Into<Box<str>>) -> Self
Construct a new channel.
Sourcepub fn as4(endpoint_url: impl Into<Box<str>>) -> Self
pub fn as4(endpoint_url: impl Into<Box<str>>) -> Self
Convenience: construct an AS4 endpoint channel.
Uses qualifier "AK" per PARTIN AHB 1.0f DE 3155 convention.
Sourcepub fn api_webdienste(base_url: impl Into<Box<str>>) -> Self
pub fn api_webdienste(base_url: impl Into<Box<str>>) -> Self
Convenience: construct an API-Webdienste Strom endpoint channel.
Uses qualifier "AW" (project-internal) to store the base URL
discovered from the BDEW Verzeichnisdienst for a given partner.
Trait Implementations§
Source§impl Clone for CommunicationChannel
impl Clone for CommunicationChannel
Source§fn clone(&self) -> CommunicationChannel
fn clone(&self) -> CommunicationChannel
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 CommunicationChannel
impl Debug for CommunicationChannel
Source§impl<'de> Deserialize<'de> for CommunicationChannel
impl<'de> Deserialize<'de> for CommunicationChannel
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>,
impl Eq for CommunicationChannel
Source§impl PartialEq for CommunicationChannel
impl PartialEq for CommunicationChannel
Source§fn eq(&self, other: &CommunicationChannel) -> bool
fn eq(&self, other: &CommunicationChannel) -> bool
self and other values to be equal, and is used by ==.