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§
- utils
- Utility functions for version handling
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 - Converter
Warning - Detection
Clue - Clue used for version detection
- Element
Conversion - Individual element conversion record
- Ern42
Constraints - ERN 4.2 specific constraints and validation rules
- Ern43
Constraints - ERN 4.3 specific constraints and validation rules
- Ern382
Constraints - ERN 3.8.2 specific constraints and validation rules
- Feature
Support - Feature support across versions
- Validation
Rule - Validation rule definition
- Version
Converter - 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 - Type of conversion performed
- Conversion
Warning Type - Converter
Result - 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
- Validation
Rule Type - Type of validation rule
Functions§
- get_
validation_ rules - Get ERN 3.8.2 specific element validation rules