pub trait Points:
Send
+ Sync
+ 'static {
Show 13 methods
// Required methods
fn upsert<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn search<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn scroll<'life0, 'async_trait>(
&'life0 self,
request: Request<ScrollPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScrollResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recommend<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn count<'life0, 'async_trait>(
&'life0 self,
request: Request<CountPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<CountResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query<'life0, 'async_trait>(
&'life0 self,
request: Request<QueryPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<QueryResponse>, 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 PointsServer.
Required Methods§
Sourcefn upsert<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert<'life0, 'async_trait>(
&'life0 self,
request: Request<UpsertPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Upsert points
Sourcefn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete points
Sourcefn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get points by IDs
Sourcefn set_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<SetPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set payload for points
Sourcefn delete_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<DeletePayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete payload keys from points
Sourcefn clear_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_payload<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearPayloadPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clear all payload from points
Sourcefn create_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create field index
Sourcefn delete_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_field_index<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteFieldIndexCollection>,
) -> Pin<Box<dyn Future<Output = Result<Response<PointsOperationResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete field index
Sourcefn search<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search<'life0, 'async_trait>(
&'life0 self,
request: Request<SearchPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<SearchResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Search for similar points
Sourcefn scroll<'life0, 'async_trait>(
&'life0 self,
request: Request<ScrollPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScrollResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn scroll<'life0, 'async_trait>(
&'life0 self,
request: Request<ScrollPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<ScrollResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Scroll through points
Sourcefn recommend<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recommend<'life0, 'async_trait>(
&'life0 self,
request: Request<RecommendPoints>,
) -> Pin<Box<dyn Future<Output = Result<Response<RecommendResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Recommend points