Skip to main content

Module id

Module id 

Source
Expand description

Identifiers.

Every record has a globally unambiguous RecordId of the form pd:<origin>:<uuid>, where <origin> is the DNS-like authority of the instance that minted it and <uuid> is a UUIDv7 (time-ordered). Because the origin is part of the identifier, records from independently operated instances can be referenced without coordination, which keeps federation possible later without changing the identifier format.

Structs§

EventId
Identifier of a single event in a record’s history.
NamespacedName
A namespace:name pair used for extension record kinds, extension relations, roles, event tags and annotations. Namespaces keep application vocabulary (e.g. app:status_change) out of the core vocabulary.
Origin
The authority (instance) that minted an identifier, e.g. records.example.org.
RecordId
Stable, globally unambiguous record identifier: pd:<origin>:<uuid>.
RelationId
Identifier of a relationship asserted on a record.
SourceId
Identifier of a source reference attached to a record.

Enums§

IdError

Constants§

RECORD_ID_SCHEME
Prefix of every serialized record identifier.

Functions§

is_namespace
[a-z][a-z0-9_.-]*, at most 64 bytes.
is_simple_name
[a-z][a-z0-9_]*, at most 64 bytes.