DataScanService

Trait DataScanService 

Source
pub trait DataScanService:
    Debug
    + Send
    + Sync {
Show 20 methods // Provided methods fn create_data_scan( &self, _req: CreateDataScanRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn update_data_scan( &self, _req: UpdateDataScanRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_data_scan( &self, _req: DeleteDataScanRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_data_scan( &self, _req: GetDataScanRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataScan>>> + Send { ... } fn list_data_scans( &self, _req: ListDataScansRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataScansResponse>>> + Send { ... } fn run_data_scan( &self, _req: RunDataScanRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RunDataScanResponse>>> + Send { ... } fn get_data_scan_job( &self, _req: GetDataScanJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataScanJob>>> + Send { ... } fn list_data_scan_jobs( &self, _req: ListDataScanJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataScanJobsResponse>>> + Send { ... } fn generate_data_quality_rules( &self, _req: GenerateDataQualityRulesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<GenerateDataQualityRulesResponse>>> + 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 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::DataScanService.

Application developers may need to implement this trait to mock client::DataScanService. In other use-cases, application developers only use client::DataScanService 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_data_scan( &self, _req: CreateDataScanRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn generate_data_quality_rules( &self, _req: GenerateDataQualityRulesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<GenerateDataQualityRulesResponse>>> + 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 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§