pub struct AssembledTree {
pub segments: Vec<AssembledSegment>,
pub groups: Vec<AssembledGroup>,
pub post_group_start: usize,
pub inter_group_segments: BTreeMap<usize, Vec<AssembledSegment>>,
}Expand description
A generic assembled tree node (before PID-specific typing).
Fields§
§segments: Vec<AssembledSegment>§groups: Vec<AssembledGroup>§post_group_start: usizeIndex in segments where post-group segments start (e.g., UNT, UNZ).
Segments before this index appear before groups in EDIFACT order.
inter_group_segments: BTreeMap<usize, Vec<AssembledSegment>>Root segments consumed between groups during assembly (e.g., UNS
section separator in MSCONS). Key = index into groups vec; value =
segments that appear immediately before that group in the EDIFACT
stream. Empty for messages without inter-group root segments.
Implementations§
Source§impl AssembledTree
impl AssembledTree
Sourcepub fn transaction_view(
&self,
group_id: &str,
index: usize,
) -> Option<TransactionView>
pub fn transaction_view( &self, group_id: &str, index: usize, ) -> Option<TransactionView>
The message as transaction index of the top-level group group_id
sees it (see the module). None when the
group has no such repetition.
Trait Implementations§
Source§impl Clone for AssembledTree
impl Clone for AssembledTree
Source§impl Debug for AssembledTree
impl Debug for AssembledTree
Source§impl<'de> Deserialize<'de> for AssembledTree
impl<'de> Deserialize<'de> for AssembledTree
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 AssembledTree
impl RefUnwindSafe for AssembledTree
impl Send for AssembledTree
impl Sync for AssembledTree
impl Unpin for AssembledTree
impl UnsafeUnpin for AssembledTree
impl UnwindSafe for AssembledTree
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