pub struct IndexesApi<'a> { /* private fields */ }Expand description
Indexes resource handle. Wraps apis::indexes_api.
Covers both dataset-scoped indexes and managed-table (connection/schema/table) indexes, so method names keep the disambiguating suffix.
Implementations§
Source§impl<'a> IndexesApi<'a>
impl<'a> IndexesApi<'a>
Sourcepub async fn create_dataset_index(
&self,
dataset_id: &str,
request: CreateIndexRequest,
) -> Result<IndexInfoResponse, Error<CreateDatasetIndexError>>
pub async fn create_dataset_index( &self, dataset_id: &str, request: CreateIndexRequest, ) -> Result<IndexInfoResponse, Error<CreateDatasetIndexError>>
Create an index on a dataset.
Sourcepub async fn list_dataset_indexes(
&self,
dataset_id: &str,
) -> Result<ListIndexesResponse, Error<ListDatasetIndexesError>>
pub async fn list_dataset_indexes( &self, dataset_id: &str, ) -> Result<ListIndexesResponse, Error<ListDatasetIndexesError>>
List indexes on a dataset.
Sourcepub async fn delete_dataset_index(
&self,
dataset_id: &str,
index_name: &str,
) -> Result<(), Error<DeleteDatasetIndexError>>
pub async fn delete_dataset_index( &self, dataset_id: &str, index_name: &str, ) -> Result<(), Error<DeleteDatasetIndexError>>
Delete an index from a dataset.
Sourcepub async fn create_index(
&self,
connection_id: &str,
schema: &str,
table: &str,
request: CreateIndexRequest,
) -> Result<IndexInfoResponse, Error<CreateIndexError>>
pub async fn create_index( &self, connection_id: &str, schema: &str, table: &str, request: CreateIndexRequest, ) -> Result<IndexInfoResponse, Error<CreateIndexError>>
Create an index on a managed table.
Sourcepub async fn list_indexes(
&self,
connection_id: &str,
schema: &str,
table: &str,
) -> Result<ListIndexesResponse, Error<ListIndexesError>>
pub async fn list_indexes( &self, connection_id: &str, schema: &str, table: &str, ) -> Result<ListIndexesResponse, Error<ListIndexesError>>
List indexes on a managed table.
Sourcepub async fn delete_index(
&self,
connection_id: &str,
schema: &str,
table: &str,
index_name: &str,
) -> Result<(), Error<DeleteIndexError>>
pub async fn delete_index( &self, connection_id: &str, schema: &str, table: &str, index_name: &str, ) -> Result<(), Error<DeleteIndexError>>
Delete an index from a managed table.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for IndexesApi<'a>
impl<'a> !UnwindSafe for IndexesApi<'a>
impl<'a> Freeze for IndexesApi<'a>
impl<'a> Send for IndexesApi<'a>
impl<'a> Sync for IndexesApi<'a>
impl<'a> Unpin for IndexesApi<'a>
impl<'a> UnsafeUnpin for IndexesApi<'a>
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