pub trait VectorService:
Send
+ Sync
+ 'static {
// Required methods
fn create_collection<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateCollectionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionInfo>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_collection<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteCollectionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteResult>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upsert_vector<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertVectorRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<UpsertResult>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search_vectors<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponseProto>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_collection_stats<'life0, 'async_trait>(
&'life0 self,
request: Request<StatsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CollectionStatsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_collections<'life0, 'async_trait>(
&'life0 self,
request: Request<ListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListCollectionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with VectorServiceServer.