Skip to main content

build_validated_tree

Function build_validated_tree 

Source
pub fn build_validated_tree<'a>(
    workflow: &'a AhbWorkflow,
    tree: &'a AssembledTree,
) -> ValidatedTree<'a>
Expand description

Build a ValidatedTree by merging an AHB workflow with an assembled EDIFACT tree.

The join key is mig_number: both AhbFieldRule::mig_number and AssembledSegment::mig_number carry the MIG Number attribute that uniquely identifies a segment variant.