ULID dokumentiert

This commit is contained in:
2026-06-09 22:51:22 +02:00
parent 28ff3bd2bf
commit 719a2bc43a

View File

@@ -16,6 +16,9 @@ pub type Id = uuid::Uuid;
pub struct Ulid(pub UlidPrimitive);
#[Scalar]
/// The ULID scalar type represents a Universally Unique Lexicographically Sortable Identifier as defined by the ULID specification.
/// ULIDs are 26-character strings that are URL-safe, case-insensitive, and lexicographically sortable,
/// making them ideal for distributed systems requiring time-ordered unique identifiers.
impl ScalarType for Ulid {
fn parse(value: Value) -> InputValueResult<Self> {
match value {