Expand description
Code enums and map keys of the generated typed PID modules.
The mapping engine writes a code field as the value its enum_map translates
the EDIFACT code to (e.g. "kundeMsb"), or as the raw code when there is no
mapping; with code enrichment on, the value is wrapped in a
{code, meaning, enum} object. [code_enum!] generates enums that serialize
as the written value and deserialize from the written value, any raw EDIFACT
code producing it, or an enriched object.
MapKey describes how the engine’s reverse mapping resolves a group
qualifier from an element’s fields; the typed modules key map-keyed entities
with it (see crate::serde_helpers::deserialize_keyed_map).
Traits§
- Code
Enum - A BO4E code value set (generated by [
code_enum!] or [key_enum!]). - MapKey
- Qualifier key of a map-keyed entity collection.
Functions§
- deserialize_
code - Deserialize a code enum from a string or an enriched
{code, ...}object.