Expand description
Multi-version DDEX support and conversion
This module provides comprehensive support for multiple DDEX ERN versions including 3.8.2, 4.2, and 4.3 with automatic conversion capabilities.
§Supported Versions
- ERN 3.8.2: Legacy version with different namespaces and element structures
- ERN 4.2: Intermediate version with some modern features
- ERN 4.3: Current recommended version with full feature set
§Version Conversion
The system supports both upgrade and downgrade paths:
- Upgrade: 3.8.2 → 4.2 → 4.3 (with feature enhancement)
- Downgrade: 4.3 → 4.2 → 3.8.2 (with compatibility warnings)
§Examples
use ddex_builder::versions::{VersionConverter, DdexVersion};
let converter = VersionConverter::new();
let result = converter.convert_version(ddex_xml, DdexVersion::Ern382, DdexVersion::Ern43)?;Modules§
- builders
- ERN 4.3 specific element builders
- ern42
- ERN 4.2 version support
- ern43
- ERN 4.3 version support
- ern382
- ERN 3.8.2 version support
- utils
- Utility functions for version handling
- validation
- ERN 4.3 validation functions
Structs§
- Compatibility
Matrix - Version compatibility matrix
- Conversion
Error - Conversion error (non-fatal)
- Conversion
Metadata - Conversion metadata
- Conversion
Options - Options for version conversion
- Conversion
Path - Single conversion path between versions
- Conversion
Report - Detailed conversion report
- Conversion
Result - Version conversion result with detailed reporting
- Conversion
Strategy - Conversion strategy recommendation
- Conversion
Warning - Conversion warning
- Converter
Report - Report of conversion process between DDEX versions
- Converter
Warning - Warning generated during conversion
- Detection
Clue - Clue used for version detection
- Element
Conversion - Individual element conversion record
- Feature
Support - Feature support across versions
- Version
Converter - Handles conversion between different DDEX versions
- Version
Detection - Version detection result
- Version
Manager - Main version management interface
- Version
Spec - Version-specific DDEX metadata and constraints
Enums§
- Clue
Type - Type of version detection clue
- Conversion
Difficulty - Difficulty level of conversion
- Conversion
Type - Field transformation between DDEX versions
- Conversion
Warning Type - Type of conversion warning
- Converter
Result - Result of version conversion operation
- Impact
Level - Impact level of warnings/changes
- Risk
Level - Risk level of conversion strategy
- Support
Level - Level of feature support
- Validation
Level - Validation level for converted content
Functions§
- get_
namespace_ mappings_ 42 - Get ERN 4.2 namespace mappings
- get_
namespace_ mappings_ 43 - Get ERN 4.3 namespace mappings
- get_
namespace_ mappings_ 382 - Get ERN 3.8.2 namespace mappings
- get_
version_ spec - Get ERN 4.3 version specification
- get_
xml_ template_ 42 - Get ERN 4.2 specific XML template
- get_
xml_ template_ 43 - Get ERN 4.3 specific XML template
- get_
xml_ template_ 382 - Get ERN 3.8.2 specific XML template