Crate urn[][src]

Expand description

A crate for handling URNs.

Example

let urn = UrnBuilder::new(Namespace::Example, "1234:5678").build()?;
assert_eq!(urn.to_string(), "urn:example:1234:5678".to_owned());
assert_eq!(urn, "urn:example:1234:5678".parse()?); // Using std::str::parse

Structs

An RFC2141/8141 URN (Uniform Resource Name).

A struct used for constructing URNs

Enums

A URN validation error

A URN namespace identifier