pub struct NoOpVector;Expand description
A no-op vector store that discards all embeddings and returns empty search results.
§Test / Default Stub
store_embeddingsilently discards the vector (no-op).searchalways returns an emptyVec<ClaimRef>.- Engine operates in structural-only mode when this stub is used (no fuzzy candidate coverage).
- Matches v0.1 intent: VectorPort is a compile-time seam only; sqlite-vec integration is v0.2.
Trait Implementations§
Source§impl Clone for NoOpVector
impl Clone for NoOpVector
Source§fn clone(&self) -> NoOpVector
fn clone(&self) -> NoOpVector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoOpVector
impl Debug for NoOpVector
Source§impl VectorPort for NoOpVector
impl VectorPort for NoOpVector
type Error = NoOpError
Source§fn store_embedding(
&self,
_agent_id: &AgentId,
_claim_ref: &ClaimRef,
_vector: &[f32],
_embedding_model_id: &str,
) -> Result<(), Self::Error>
fn store_embedding( &self, _agent_id: &AgentId, _claim_ref: &ClaimRef, _vector: &[f32], _embedding_model_id: &str, ) -> Result<(), Self::Error>
Store embedding for a claim.
embedding_model_id is required for model-swap safety (allows detecting stale embeddings after a model change).fn search( &self, _agent_id: &AgentId, _query_vector: &[f32], _k: usize, _embedding_model_id: &str, ) -> Result<Vec<ClaimRef>, Self::Error>
Auto Trait Implementations§
impl Freeze for NoOpVector
impl RefUnwindSafe for NoOpVector
impl Send for NoOpVector
impl Sync for NoOpVector
impl Unpin for NoOpVector
impl UnsafeUnpin for NoOpVector
impl UnwindSafe for NoOpVector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more