pub struct AssembledGroupInstance {
pub segments: Vec<AssembledSegment>,
pub child_groups: Vec<AssembledGroup>,
pub entry_mig_number: Option<String>,
pub variant_mig_numbers: Vec<String>,
pub skipped_segments: Vec<AssembledSegment>,
}Expand description
One repetition of a segment group.
Fields§
§segments: Vec<AssembledSegment>§child_groups: Vec<AssembledGroup>§entry_mig_number: Option<String>MIG Number of the entry segment that identified this group instance’s variant.
variant_mig_numbers: Vec<String>All MIG Numbers defined for this group variant — includes segments that
may be absent in the EDIFACT but are defined in the MIG for this variant.
Used by the validator to determine which AHB rules belong to this instance:
a rule with mig_number in this set applies here, even if the segment is
missing (which is then a missing-field error). Without this, rules for
absent-but-required segments would be incorrectly filtered out.
skipped_segments: Vec<AssembledSegment>Segments that were present in the EDIFACT input but not defined in
the PID-filtered MIG for this group. Only populated when the assembler
runs with AssemblerConfig::skip_unknown_segments enabled.
Implementations§
Source§impl AssembledGroupInstance
impl AssembledGroupInstance
Sourcepub fn as_assembled_tree(&self) -> AssembledTree
pub fn as_assembled_tree(&self) -> AssembledTree
Create a virtual AssembledTree scoped to this group instance.
The instance’s own segments become the tree’s root segments,
and its child groups become the tree’s groups. This enables
running MappingEngine::map_all_forward() on a single
transaction group as if it were a complete message.
Trait Implementations§
Source§impl Clone for AssembledGroupInstance
impl Clone for AssembledGroupInstance
Source§fn clone(&self) -> AssembledGroupInstance
fn clone(&self) -> AssembledGroupInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more