pub struct Qdrant {
pub url_base: String,
/* private fields */
}Fields§
§url_base: StringImplementations§
Source§impl Qdrant
Shortcut functions
impl Qdrant
Shortcut functions
Sourcepub async fn collection_info(&self, collection_name: &str) -> u64
pub async fn collection_info(&self, collection_name: &str) -> u64
Shortcut functions
pub async fn create_collection( &self, collection_name: &str, size: u32, ) -> Result<(), Error>
pub async fn list_collections(&self) -> Result<Vec<String>, Error>
pub async fn collection_exists( &self, collection_name: &str, ) -> Result<bool, Error>
pub async fn delete_collection( &self, collection_name: &str, ) -> Result<(), Error>
pub async fn upsert_points( &self, collection_name: &str, points: Vec<Point>, ) -> Result<(), Error>
pub async fn search_points( &self, collection_name: &str, vector: Vec<f32>, limit: u64, score_threshold: Option<f32>, ) -> Result<Vec<ScoredPoint>, Error>
pub async fn get_points( &self, collection_name: &str, ids: &[PointId], ) -> Vec<Point>
pub async fn get_point(&self, collection_name: &str, id: &PointId) -> Point
pub async fn delete_points( &self, collection_name: &str, ids: &[PointId], ) -> Result<(), Error>
Sourcepub async fn collection_info_api(
&self,
collection_name: &str,
) -> Result<Value, Error>
pub async fn collection_info_api( &self, collection_name: &str, ) -> Result<Value, Error>
REST API functions
pub async fn create_collection_api( &self, collection_name: &str, params: &Value, ) -> Result<bool, Error>
pub async fn list_collections_api(&self) -> Result<Vec<String>, Error>
pub async fn collection_exists_api( &self, collection_name: &str, ) -> Result<bool, Error>
pub async fn delete_collection_api( &self, collection_name: &str, ) -> Result<bool, Error>
pub async fn upsert_points_api( &self, collection_name: &str, params: &Value, ) -> Result<(), Error>
pub async fn search_points_api( &self, collection_name: &str, params: &Value, ) -> Result<Value, Error>
pub async fn get_points_api( &self, collection_name: &str, params: &Value, ) -> Result<Value, Error>
pub async fn get_point_api( &self, collection_name: &str, id: &PointId, ) -> Result<Value, Error>
pub async fn delete_points_api( &self, collection_name: &str, params: &Value, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Qdrant
impl RefUnwindSafe for Qdrant
impl Send for Qdrant
impl Sync for Qdrant
impl Unpin for Qdrant
impl UnwindSafe for Qdrant
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