dpp-digital-link
GS1 Digital Link URL parsing, link-type content negotiation, and Asset Administration Shell (AAS) submodel mapping for the Odal Node Digital Product Passport system.
Pure Rust, no I/O, no network calls.
When to use this crate
- You need to parse or build GS1 Digital Link URLs (GTIN, serial, batch).
- You are resolving DPP links and need to negotiate content by link type, media type, or requesting audience.
- You want to map a DPP
serde_json::Valueto an AAS submodel for Industry 4.0 interoperability.
Example
use ;
// Parse a GS1 Digital Link URL
let link = parse.unwrap;
println!;
println!;
// Negotiate the best link for a legitimate-interest consumer
let descriptors = vec!;
let best = negotiate;
Relationship to other crates
| Crate | Role |
|---|---|
dpp-domain |
Provides Audience and Disclosure — required by this crate |
Minimum Rust version
1.96 (MSRV is enforced in CI)
License
Apache-2.0 — see LICENSE