ddex-parser 0.4.5

High-performance DDEX XML parser with SIMD optimization (40+ MB/s)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ddex_core::models::versions::ERNVersion;

pub trait ERNVersionExt {
    fn namespace_uri(&self) -> &str;
}

impl ERNVersionExt for ERNVersion {
    fn namespace_uri(&self) -> &str {
        match self {
            ERNVersion::V3_8_2 => "http://ddex.net/xml/ern/382",
            ERNVersion::V4_2 => "http://ddex.net/xml/ern/42",
            ERNVersion::V4_3 => "http://ddex.net/xml/ern/43",
        }
    }
}