DataPolicyService

Trait DataPolicyService 

Source
pub trait DataPolicyService:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn create_data_policy(
        &self,
        _req: CreateDataPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<DataPolicy>>> + Send { ... }
    fn update_data_policy(
        &self,
        _req: UpdateDataPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<DataPolicy>>> + Send { ... }
    fn rename_data_policy(
        &self,
        _req: RenameDataPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<DataPolicy>>> + Send { ... }
    fn delete_data_policy(
        &self,
        _req: DeleteDataPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<()>>> + Send { ... }
    fn get_data_policy(
        &self,
        _req: GetDataPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<DataPolicy>>> + Send { ... }
    fn list_data_policies(
        &self,
        _req: ListDataPoliciesRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<ListDataPoliciesResponse>>> + Send { ... }
    fn get_iam_policy(
        &self,
        _req: GetIamPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
    fn set_iam_policy(
        &self,
        _req: SetIamPolicyRequest,
        _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 { ... }
}
Expand description

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

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn set_iam_policy( &self, _req: SetIamPolicyRequest, _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

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§