pub struct VectorStore { /* private fields */ }Expand description
Manages all vector collections
Implementations§
Source§impl VectorStore
impl VectorStore
pub fn collection(&self, name: &str, dim: usize) -> Result<Collection>
pub fn collection_with_metric( &self, name: &str, dim: usize, metric: DistanceMetric, ) -> Result<Collection>
pub fn list_collections(&self) -> Result<Vec<(String, usize, i64)>>
pub fn drop_collection(&self, name: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for VectorStore
impl RefUnwindSafe for VectorStore
impl Send for VectorStore
impl Sync for VectorStore
impl Unpin for VectorStore
impl UnsafeUnpin for VectorStore
impl UnwindSafe for VectorStore
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