Trait DatasetService

Source
pub trait DatasetService:
    Debug
    + Send
    + Sync {
Show 31 methods // Provided methods fn create_dataset( &self, _req: CreateDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_dataset( &self, _req: GetDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... } fn update_dataset( &self, _req: UpdateDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... } fn list_datasets( &self, _req: ListDatasetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDatasetsResponse>>> + Send { ... } fn delete_dataset( &self, _req: DeleteDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn import_data( &self, _req: ImportDataRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn export_data( &self, _req: ExportDataRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn create_dataset_version( &self, _req: CreateDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn update_dataset_version( &self, _req: UpdateDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DatasetVersion>>> + Send { ... } fn delete_dataset_version( &self, _req: DeleteDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_dataset_version( &self, _req: GetDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DatasetVersion>>> + Send { ... } fn list_dataset_versions( &self, _req: ListDatasetVersionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDatasetVersionsResponse>>> + Send { ... } fn restore_dataset_version( &self, _req: RestoreDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn list_data_items( &self, _req: ListDataItemsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataItemsResponse>>> + Send { ... } fn search_data_items( &self, _req: SearchDataItemsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchDataItemsResponse>>> + Send { ... } fn list_saved_queries( &self, _req: ListSavedQueriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListSavedQueriesResponse>>> + Send { ... } fn delete_saved_query( &self, _req: DeleteSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_annotation_spec( &self, _req: GetAnnotationSpecRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnnotationSpec>>> + Send { ... } fn list_annotations( &self, _req: ListAnnotationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAnnotationsResponse>>> + Send { ... } fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send { ... } fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send { ... } fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + 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 wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy> { ... } fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Available on crate feature dataset-service only.
Expand description

Defines the trait used to implement super::client::DatasetService.

Application developers may need to implement this trait to mock client::DatasetService. In other use-cases, application developers only use client::DatasetService 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§

Source

fn create_dataset( &self, _req: CreateDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_dataset( &self, _req: GetDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Dataset>>> + Send

Source

fn update_dataset( &self, _req: UpdateDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Dataset>>> + Send

Source

fn list_datasets( &self, _req: ListDatasetsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDatasetsResponse>>> + Send

Source

fn delete_dataset( &self, _req: DeleteDatasetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn import_data( &self, _req: ImportDataRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn export_data( &self, _req: ExportDataRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn create_dataset_version( &self, _req: CreateDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn update_dataset_version( &self, _req: UpdateDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DatasetVersion>>> + Send

Source

fn delete_dataset_version( &self, _req: DeleteDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_dataset_version( &self, _req: GetDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DatasetVersion>>> + Send

Source

fn list_dataset_versions( &self, _req: ListDatasetVersionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDatasetVersionsResponse>>> + Send

Source

fn restore_dataset_version( &self, _req: RestoreDatasetVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn list_data_items( &self, _req: ListDataItemsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataItemsResponse>>> + Send

Source

fn search_data_items( &self, _req: SearchDataItemsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchDataItemsResponse>>> + Send

Source

fn list_saved_queries( &self, _req: ListSavedQueriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListSavedQueriesResponse>>> + Send

Source

fn delete_saved_query( &self, _req: DeleteSavedQueryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_annotation_spec( &self, _req: GetAnnotationSpecRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<AnnotationSpec>>> + Send

Source

fn list_annotations( &self, _req: ListAnnotationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAnnotationsResponse>>> + Send

Source

fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send

Source

fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send

Source

fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send

Source

fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send

Source

fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

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.

Source

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.

Implementors§