The UR type.
The payload.
StaticfromStaticparseParse a single-part UR string (any case: the whole string is
lower-cased first, as the reference's UR::from_ur_string does).
In the reference's order: InvalidScheme (no ur:),
TypeUnspecified (no /), InvalidType, then Decoder for what the
reference's ur::decode rejects (a multipart header that is not two
u16s, "Invalid indices"; or the payload's bytewords, "invalid word" /
"invalid checksum" / "invalid length" / non-ASCII), NotSinglePart for
a well-formed multipart string, and Cbor.
StaticencodeThe string for already-encoded CBOR bytes.
StaticdecodeThe type and CBOR bytes of a single-part UR string, without decoding the CBOR; the checks and their order are those of UR.parse.
The UR type.
The CBOR bytes, not yet decoded.
ur:<type>/<bytewords>
Upper-case form for alphanumeric QR encoding.
UTF-8 bytes of toQRString.
Same type and structurally equal CBOR, as the reference's PartialEq compares them.
A UR: a URType and a CBOR payload, spelled
ur:<type>/<minimal bytewords of the CBOR>.