pub trait DatastoreAdmin:
Debug
+ Send
+ Sync {
// Provided methods
fn export_entities(
&self,
_req: ExportEntitiesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn import_entities(
&self,
_req: ImportEntitiesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn create_index(
&self,
_req: CreateIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_index(
&self,
_req: DeleteIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_index(
&self,
_req: GetIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Index>>> + Send { ... }
fn list_indexes(
&self,
_req: ListIndexesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListIndexesResponse>>> + Send { ... }
fn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send { ... }
fn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_operation(
&self,
_req: DeleteOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn cancel_operation(
&self,
_req: CancelOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy> { ... }
fn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy> { ... }
}Expand description
Defines the trait used to implement super::client::DatastoreAdmin.
Application developers may need to implement this trait to mock
client::DatastoreAdmin. In other use-cases, application developers only
use client::DatastoreAdmin and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn export_entities(
&self,
_req: ExportEntitiesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn export_entities( &self, _req: ExportEntitiesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::DatastoreAdmin::export_entities.
Sourcefn import_entities(
&self,
_req: ImportEntitiesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn import_entities( &self, _req: ImportEntitiesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::DatastoreAdmin::import_entities.
Sourcefn create_index(
&self,
_req: CreateIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_index( &self, _req: CreateIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::DatastoreAdmin::create_index.
Sourcefn delete_index(
&self,
_req: DeleteIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_index( &self, _req: DeleteIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::DatastoreAdmin::delete_index.
Sourcefn get_index(
&self,
_req: GetIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Index>>> + Send
fn get_index( &self, _req: GetIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Index>>> + Send
Implements super::client::DatastoreAdmin::get_index.
Sourcefn list_indexes(
&self,
_req: ListIndexesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListIndexesResponse>>> + Send
fn list_indexes( &self, _req: ListIndexesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListIndexesResponse>>> + Send
Implements super::client::DatastoreAdmin::list_indexes.
Sourcefn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
Implements super::client::DatastoreAdmin::list_operations.
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::DatastoreAdmin::get_operation.
Sourcefn delete_operation(
&self,
_req: DeleteOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::DatastoreAdmin::delete_operation.
Sourcefn cancel_operation(
&self,
_req: CancelOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::DatastoreAdmin::cancel_operation.
Sourcefn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy>
fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy>
Returns the polling error policy.
When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.
Sourcefn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy>
fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy>
Returns the polling backoff policy.
When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.