Skip to main content

Crate linkrs_wire

Crate linkrs_wire 

Source
Expand description

Wire contract crate: DTOs shared between the network service (linkrs-server) and the CLI.

The HTTP contract has a single source of truth here: the server serializes these types and the CLI deserializes them (and vice versa for requests), eliminating field-by-field mirror DTOs in both crates.

Dependency surface is deliberately minimal (serde + serde_json + utoipa schema derives) so the crate stays usable from both sides without dragging in axum/tonic.

Modulesยง

batch
Batch import contract DTOs (HTTP /batch endpoints).
fulltext
Fulltext protocol DTOs.
meta
Meta contract DTOs: auth, session, transaction, config, statistics and cold-snapshot endpoints.
migration
query
Query contract DTOs (HTTP /query endpoints).
schema
Schema contract DTOs (HTTP /schema endpoints).
vector
Vector protocol DTOs.