pub struct MappedTransaktion {
pub stammdaten: Value,
pub nesting_info: HashMap<String, Vec<usize>>,
pub dp_routing: HashMap<String, Vec<Map<String, Value>>>,
}Expand description
Internal engine type for a forward-mapped transaction.
Contains all BO4E entities (including prozessdaten) in stammdaten,
plus nesting distribution info used by the reverse mapper.
Fields§
§stammdaten: ValueAll BO4E entities mapped from this transaction’s segment groups. Keys are entity names in camelCase (e.g., “prozessdaten”, “marktlokation”, “messlokation”).
nesting_info: HashMap<String, Vec<usize>>Nesting distribution info for transaction-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 within a transaction (e.g., SG36->SG40 in PRICAT). Derived from the tree structure during forward mapping; never serialized.
dp_routing: HashMap<String, Vec<Map<String, Value>>>NAD+DP routing metadata captured during forward mapping.
Maps the destination entity key (“marktlokation” / “messlokation”) to a
vec of metadata blobs (one per routed DP entry, in array order). Each
blob carries the original marktteilnehmer[] index, marktrolle code,
LOC qualifier, and any unmapped extras — everything the reverse mapper
needs to rebuild the NAD+DP segment without leaking a _dpSource
marker into the public BO4E JSON. Empty when the transaction has no
NAD+DP segment.
Trait Implementations§
Source§impl Clone for MappedTransaktion
impl Clone for MappedTransaktion
Source§fn clone(&self) -> MappedTransaktion
fn clone(&self) -> MappedTransaktion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more