pub struct MappedMessage {
pub stammdaten: Value,
pub transaktionen: Vec<MappedTransaktion>,
pub nesting_info: HashMap<String, Vec<usize>>,
}Expand description
Intermediate result from mapping a single message’s assembled tree.
Contains message-level stammdaten and per-transaction results.
Used by MappingEngine::map_interchange() before wrapping into Nachricht.
Fields§
§stammdaten: ValueMessage-level BO4E entities (e.g., Marktteilnehmer from SG2).
transaktionen: Vec<MappedTransaktion>Per-transaction results (one per SG4 instance).
nesting_info: HashMap<String, Vec<usize>>Nesting distribution info for message-level entities.
Maps entity key (camelCase) -> parent rep index for each child element. Used by the reverse mapper to distribute children among parent group reps. Derived from the tree structure during forward mapping; never serialized.
Implementations§
Source§impl MappedMessage
impl MappedMessage
Sourcepub fn into_dynamic_nachricht(
self,
nachrichtendaten: Nachrichtendaten,
) -> DynamicNachricht
pub fn into_dynamic_nachricht( self, nachrichtendaten: Nachrichtendaten, ) -> DynamicNachricht
Convert this internal engine result into a public DynamicNachricht.
Each MappedTransaktion.stammdaten becomes a transaction entry in the
DynamicNachricht.transaktionen Vec.
Trait Implementations§
Source§impl Clone for MappedMessage
impl Clone for MappedMessage
Source§fn clone(&self) -> MappedMessage
fn clone(&self) -> MappedMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more