mirror of
https://github.com/qdrant/qdrant.git
synced 2026-10-03 19:37:41 -05:00
Destructure structs in conversions, key/match functions, and config builders so the compiler will error when new fields are added but not handled. This prevents a common class of bugs where a newly added struct field is silently ignored. Covered spots: - RecommendPointGroups → RecommendGroupsRequestInternal (15 fields) - ShardTransferTelemetry ↔ ShardTransferInfo (7 fields, both directions) - ReshardingTelemetry ↔ ReshardingInfo (6 fields, both directions) - HwMeasurementAcc → HardwareUsage (7 fields, 3 call sites) - VectorParams destructuring in optimizers_builder and config (7 fields) - SparseVectorParams destructuring in optimizers_builder (2 fields) - ShardTransfer → ShardTransferRestart (5 fields) - ReshardState::matches and ReshardState::key (5 fields each) - ShardTransfer::key and ShardTransferRestart::key (4 fields each) - SnapshotDescription → grpc (4 fields) - WithLookup REST → internal (3 fields) - SegmentConfigV5 → SegmentConfig (5 fields) Made-with: Cursor Co-authored-by: Cursor Agent <agent@cursor.com>