Skip to main content

qql_protocol/
lib.rs

1//! Qdrant REST protocol surface: the closed response IR, telemetry, the
2//! strict OpenAPI response parser, collection-schema reading, and response
3//! normalization.
4//!
5//! Nothing here performs I/O. `qql-runtime` uses it as its REST response
6//! boundary and re-exports it to keep the executor API stable; the WASM host
7//! consumes the same parser and normalizer directly, so both hosts cannot
8//! drift on response shapes. The crate sits above `qql-plan`: plans carry
9//! the typed request, this crate turns backend envelopes back into typed
10//! [`ExecData`].
11
12/// Pure `BackendResponse` → `ExecResponse` shaping shared by all hosts.
13pub mod normalize;
14/// The closed response IR: `ExecData` family, scores, telemetry envelope.
15pub mod response;
16/// Strict OpenAPI REST response parsing, one shape per operation.
17pub mod rest;
18/// Collection metadata types and the REST schema reader.
19pub mod schema;
20/// Server telemetry and client phase timings.
21pub mod telemetry;
22
23pub use normalize::normalize_planned;
24pub use response::*;
25pub use rest::*;
26pub use schema::*;
27pub use telemetry::*;