pub struct Bo4eFieldIndex { /* private fields */ }Expand description
Maps EDIFACT segment paths from validation errors to BO4E field paths.
Implementations§
Source§impl Bo4eFieldIndex
impl Bo4eFieldIndex
Sourcepub fn build(definitions: &[MappingDefinition], mig: &MigSchema) -> Self
pub fn build(definitions: &[MappingDefinition], mig: &MigSchema) -> Self
Build the index from TOML mapping definitions and a MIG schema.
For each field in each definition, resolves the TOML numeric path
(e.g., loc.1.0) to an AHB-style EDIFACT path (e.g., SG4/SG5/LOC/C517/3225)
using the MIG schema for element ID lookup.
Auto Trait Implementations§
impl Freeze for Bo4eFieldIndex
impl RefUnwindSafe for Bo4eFieldIndex
impl Send for Bo4eFieldIndex
impl Sync for Bo4eFieldIndex
impl Unpin for Bo4eFieldIndex
impl UnsafeUnpin for Bo4eFieldIndex
impl UnwindSafe for Bo4eFieldIndex
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