Trait CollectionsApi
Source pub trait CollectionsApi: Send + Sync {
// Required methods
fn create_collection<'life0, 'async_trait>(
&'life0 self,
params: CreateCollectionParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponse, Error<CreateCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_alias<'life0, 'async_trait>(
&'life0 self,
params: DeleteAliasParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionAlias, Error<DeleteAliasError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_collection<'life0, 'async_trait>(
&'life0 self,
params: DeleteCollectionParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponse, Error<DeleteCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_alias<'life0, 'async_trait>(
&'life0 self,
params: GetAliasParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionAlias, Error<GetAliasError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_aliases<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CollectionAliasesResponse, Error<GetAliasesError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_collection<'life0, 'async_trait>(
&'life0 self,
params: GetCollectionParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponse, Error<GetCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_collections<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<CollectionResponse>, Error<GetCollectionsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_collection<'life0, 'async_trait>(
&'life0 self,
params: UpdateCollectionParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionUpdateSchema, Error<UpdateCollectionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn upsert_alias<'life0, 'async_trait>(
&'life0 self,
params: UpsertAliasParams,
) -> Pin<Box<dyn Future<Output = Result<CollectionAlias, Error<UpsertAliasError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}