pub struct CorrelationKey {
pub zuordnung: Zuordnung,
pub elements: Vec<String>,
}Expand description
A resolved Zuordnungstupel — the tuple and the values read for it.
Fields§
§zuordnung: ZuordnungWhich tuple was applied.
elements: Vec<String>The tuple’s elements, in the order the specification lists them.
An element the message did not carry is an empty string rather than a dropped position, so two keys never collide by shifting.
Implementations§
Source§impl CorrelationKey
impl CorrelationKey
Sourcepub fn nominierung(
gas_day: Date,
ort: &str,
bilanzkreis_intern: &str,
bilanzkreis_extern: &str,
) -> Self
pub fn nominierung( gas_day: Date, ort: &str, bilanzkreis_intern: &str, bilanzkreis_extern: &str, ) -> Self
The nomination key both ends build: (Gastag, Ort, Bilanzkreis intern, Bilanzkreis extern).
NOMINT and NOMRES publish no Zuordnungstupel — a NOMRES carries no reference to the nomination it answers — so the pair meets on this business key. A sender that assembles it by hand and a receiver that reads it off the wire have to agree character for character, which is why both call this.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
true when every element carries a value.
A partial key still identifies something, but on fewer facts than DVGW specified.
Trait Implementations§
Source§impl Clone for CorrelationKey
impl Clone for CorrelationKey
Source§fn clone(&self) -> CorrelationKey
fn clone(&self) -> CorrelationKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more