Skip to main content

Module model

Module model 

Source
Expand description

Domain model for LinkMarks.

Invariants:

  • original_url is never rewritten. Round-trip fidelity.
  • canonical_url is the dedupe key, normalized by canonical.
  • tags are sorted, lowercase, deduplicated at the model boundary.
  • collection is a /-separated folder path, normalized.
  • Timestamps are UTC ISO 8601.

Structs§

Bookmark
A normalized bookmark record.
BookmarkId
Opaque bookmark identifier. ULID by default; may be locally generated UUIDs in v0. Server-assigned in CRDT mode.
Collection
A collection (folder) grouping bookmarks.
CollectionId
Opaque collection identifier.
SourceRef
Source provenance.
Tag
Tag newtype. Validates lowercase + non-empty on construction.

Enums§

SourceKind
Enumerates the source kinds supported by core + bridges.