Crate links_id

Source
Expand description

Links IDs are unique identifiers used in the links project to identify individual links.

A links ID is a randomly generated 40 bit / 5 byte integer. It is usually encoded as an 8 character string, starting with a digit (0-9) followed by 7 base 38 characters. The character set used for base 38 is a modified nanoid-dictionary nolookalikesSafe, with 2 additional characters - X and x. The full charset is (in order): 6789BCDFGHJKLMNPQRTWXbcdfghjkmnpqrtwxz.

Structs§

Id
The 40 bit ID used to identify links in links.

Enums§

ConversionError
The error returned by fallible conversions into IDs.

Constants§

BASE_10_CHARSET
The character set used for base 10 encoding (digits). Used by the first character of the Id string representation.
BASE_38_CHARSET
The character set used for the base 38 encoding of the last 7 characters of the string representation of an Id.
REVERSE_CHARSET
Reverse base 38 character set used for decoding encoded IDs.
REVERSE_CHARSET_BASE_38_OFFSET
The offset from the ASCII value of a base 38 character to its index in REVERSE_CHARSET.