Skip to main content

Module prelude

Module prelude 

Source

Structs§

IdPrefix
Identifier
PrefixedId
Slug
StableId
TypedIdentifier
TypedPrefixedId
UlidId
UuidId

Enums§

IdPrefixError
IdentifierError
SlugError
UlidIdError
UuidIdError

Traits§

IdentifierKind
PrefixedIdentifierKind

Functions§

format_prefixed_id
Formats a prefix and value into the canonical prefix_value representation.
is_ulid
is_uuid
is_valid_identifier
is_valid_prefix
is_valid_slug
normalize_identifier
normalize_prefix
normalize_slug
stable_content_id
stable_hash64
stable_hex
stable_name_id
stable_path_id
stable_reference
validate_identifier
Validates that an identifier is non-empty and contains only supported ASCII characters.
validate_prefix
Validates that a prefix starts with a lowercase ASCII letter and only contains lowercase ASCII letters or digits.
validate_slug
Validates that a slug is non-empty, lowercase ASCII, and hyphen-delimited.