pub struct MockVectorEngine {
pub base: InMemoryEngine,
pub collections: HashMap<String, Vec<VectorCollectionEntry>>,
}Fields§
§base: InMemoryEngine§collections: HashMap<String, Vec<VectorCollectionEntry>>Implementations§
Source§impl MockVectorEngine
impl MockVectorEngine
pub fn new(graph: Graph) -> Self
pub fn with_collections( graph: Graph, collections: HashMap<String, Vec<VectorCollectionEntry>>, ) -> Self
pub fn insert_collection( &mut self, name: impl Into<String>, entries: Vec<VectorCollectionEntry>, )
pub fn set_param(&mut self, name: impl Into<String>, value: Value)
pub fn clear_params(&mut self)
Trait Implementations§
Source§impl Clone for MockVectorEngine
impl Clone for MockVectorEngine
Source§fn clone(&self) -> MockVectorEngine
fn clone(&self) -> MockVectorEngine
Returns a duplicate of the value. Read more
1.0.0 · 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 MockVectorEngine
impl Debug for MockVectorEngine
Source§impl Default for MockVectorEngine
impl Default for MockVectorEngine
Source§fn default() -> MockVectorEngine
fn default() -> MockVectorEngine
Returns the “default value” for a type. Read more
Source§impl PlanEngine for MockVectorEngine
impl PlanEngine for MockVectorEngine
type Error = ExecutionError
Source§fn execute_plan(&mut self, plan: &Plan) -> Result<QueryResult, Self::Error>
fn execute_plan(&mut self, plan: &Plan) -> Result<QueryResult, Self::Error>
Execute a deserialized plan.
Auto Trait Implementations§
impl Freeze for MockVectorEngine
impl RefUnwindSafe for MockVectorEngine
impl Send for MockVectorEngine
impl Sync for MockVectorEngine
impl Unpin for MockVectorEngine
impl UnsafeUnpin for MockVectorEngine
impl UnwindSafe for MockVectorEngine
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