pub struct AhbGroupNode<'a> {
pub group_id: &'a str,
pub instance_index: usize,
pub ahb_status: Option<&'a str>,
pub own_status: Option<&'a str>,
pub fields: Vec<AhbNode<'a>>,
pub children: Vec<AhbGroupNode<'a>>,
pub variant_rules: Vec<&'a AhbFieldRule>,
pub absent_children: Vec<&'a AhbFieldRule>,
}Expand description
A segment group instance matched against EDIFACT data.
Fields§
§group_id: &'a strGroup ID (e.g., “SG4”, “SG8”).
instance_index: usizeWhich repetition of group_id this is, among its siblings.
ahb_status: Option<&'a str>AHB status of this group, with every conditional ancestor’s
condition ANDed in (the PID schema’s parent_group_ahb_status).
own_status: Option<&'a str>This group’s own AHB status, as the AHB writes it (group_ahb_status):
what it asks of the group once its parent is there. None where the
workflow does not carry it.
fields: Vec<AhbNode<'a>>Fields in this group instance, resolved against EDIFACT segments.
children: Vec<AhbGroupNode<'a>>Child group instances.
variant_rules: Vec<&'a AhbFieldRule>Every rule of this instance’s variant, its child groups’ included.
absent_children: Vec<&'a AhbFieldRule>The rules of child group variants this instance lists but lacks: each such variant’s own segments, not those of groups nested in it. Only variants told apart by their entry qualifier are counted.