Expand description
Vehicle database schema for the fastsim-vehicles repository.
This crate provides serialization/deserialization of vehicle identification paths into structured data, along with index management and WebAssembly bindings. Currently supports schema version 1.
Structs§
- Index
Entry V1 - A single entry in the vehicle index (i.e.
vehicles.jsonl). - QueryV1
- Structured search constraints over an
IndexEntryV1slice. - Vehicle
Schema V1 - Database organizational schema version 1 for the
fastsim-vehiclesrepository.
Enums§
Constants§
Functions§
- read_
jsonl_ v1 - Parse JSON Lines text (as read from
vehicles.jsonl, or fetched client-side in the browser widget) into entries. - search_
v1 - Filter
entriesagainstquery, returning references to matches in their original order. - write_
jsonl_ v1 - Serialize a slice of entries into JSON Lines, one entry per line
in the given order, written to
writer. Callers wanting a specific ordering (e.g. sorted by path) should sortentriesbeforehand — this function preserves input order rather than imposing one.