pub struct MappingDefinition {
pub meta: MappingMeta,
pub fields: IndexMap<String, FieldMapping>,
pub companion_fields: Option<IndexMap<String, FieldMapping>>,
pub complex_handlers: Option<Vec<ComplexHandlerRef>>,
}Expand description
Root mapping definition — one per TOML file.
Fields§
§meta: MappingMeta§fields: IndexMap<String, FieldMapping>Field mappings — uses IndexMap to preserve TOML file insertion order, which determines reverse-mapping segment ordering (e.g., DTM+Z05 before DTM+Z01).
companion_fields: Option<IndexMap<String, FieldMapping>>§complex_handlers: Option<Vec<ComplexHandlerRef>>Implementations§
Source§impl MappingDefinition
impl MappingDefinition
Sourcepub fn normalize_paths(&mut self, resolver: &PathResolver)
pub fn normalize_paths(&mut self, resolver: &PathResolver)
Normalize all EDIFACT ID paths to numeric indices using the given resolver.
Resolves named paths in field keys, companion_field keys, and discriminators. Already-numeric paths pass through unchanged.
Trait Implementations§
Source§impl Clone for MappingDefinition
impl Clone for MappingDefinition
Source§fn clone(&self) -> MappingDefinition
fn clone(&self) -> MappingDefinition
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 MappingDefinition
impl Debug for MappingDefinition
Source§impl<'de> Deserialize<'de> for MappingDefinition
impl<'de> Deserialize<'de> for MappingDefinition
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 MappingDefinition
impl RefUnwindSafe for MappingDefinition
impl Send for MappingDefinition
impl Sync for MappingDefinition
impl Unpin for MappingDefinition
impl UnsafeUnpin for MappingDefinition
impl UnwindSafe for MappingDefinition
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