A copy of the bytes; mutating it does not touch this value.
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
StaticfromStaticfromStaticfromA UUID from its text, as the reference's from_str: Rust str::trim,
every - removed, strict hex (Hex on a malformed string), and 16
bytes (InvalidSize otherwise). Neither the dash positions nor the
digit count between them is checked.
StaticrandomGet hex string representation (lowercase, as the reference implementation does implementation).
Get standard UUID string representation. Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Get base64 representation.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding (as a byte string).
The tagged CBOR form.
As a UR, typed by the first tag's name.
Staticfrom
Universally Unique Identifier (UUID) - 16-byte identifier
UUIDs are 128-bit (16-byte) identifiers that are designed to be unique across space and time. This implementation creates type 4 (random) UUIDs, following the UUID specification:
Unlike ARIDs, UUIDs:
The canonical textual representation of a UUID takes the form:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxwhere eachxis a hexadecimal digit.CBOR Serialization
UUIDis serialized to CBOR with tag 37 (standard UUID tag).UR Serialization
When serialized as a Uniform Resource (UR), a
UUIDis represented with the type "uuid".