pub struct AssembledGroupInstance {
pub segments: Vec<AssembledSegment>,
pub child_groups: Vec<AssembledGroup>,
pub skipped_segments: Vec<AssembledSegment>,
}Expand description
One repetition of a segment group.
Fields§
§segments: Vec<AssembledSegment>§child_groups: Vec<AssembledGroup>§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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssembledGroupInstance
impl Debug for AssembledGroupInstance
Source§impl<'de> Deserialize<'de> for AssembledGroupInstance
impl<'de> Deserialize<'de> for AssembledGroupInstance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssembledGroupInstance
impl RefUnwindSafe for AssembledGroupInstance
impl Send for AssembledGroupInstance
impl Sync for AssembledGroupInstance
impl Unpin for AssembledGroupInstance
impl UnsafeUnpin for AssembledGroupInstance
impl UnwindSafe for AssembledGroupInstance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more