Skip to main content

Module commands

Module commands 

Source
Expand description

Typed wrappers around the v1 RPC command catalog.

Each method in this module corresponds to one entry in the wire spec’s command catalog (§ 6). The wrapper:

  1. Builds the positional args array per the spec.
  2. Calls RpcClient::call.
  3. Decodes the VectorizerValue response into a typed Rust value with explicit field handling (no serde_json::from_value detour — the wire is MessagePack, not JSON).

Adding a new typed wrapper for a v1 command landed on the server is mechanical: a new method on RpcClient here, an entry in the README, and (ideally) a test in tests/rpc_integration.rs.

Structs§

CollectionInfo
Collection metadata returned by collections.get_info.
SearchHit
One result from search.basic.