pub trait TagValues:
Debug
+ Send
+ Sync {
// Provided methods
fn list_tag_values(
&self,
_req: ListTagValuesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<ListTagValuesResponse>> + Send { ... }
fn get_tag_value(
&self,
_req: GetTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<TagValue>> + Send { ... }
fn get_namespaced_tag_value(
&self,
_req: GetNamespacedTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<TagValue>> + Send { ... }
fn create_tag_value(
&self,
_req: CreateTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn update_tag_value(
&self,
_req: UpdateTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn delete_tag_value(
&self,
_req: DeleteTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Policy>> + Send { ... }
fn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Policy>> + Send { ... }
fn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<TestIamPermissionsResponse>> + Send { ... }
fn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn get_polling_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingPolicy> { ... }
fn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy> { ... }
}Expand description
Defines the trait used to implement crate::client::TagValues.
Application developers may need to implement this trait to mock
client::TagValues. In other use-cases, application developers only
use client::TagValues 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 list_tag_values(
&self,
_req: ListTagValuesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<ListTagValuesResponse>> + Send
fn list_tag_values( &self, _req: ListTagValuesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListTagValuesResponse>> + Send
Implements crate::client::TagValues::list_tag_values.
Sourcefn get_tag_value(
&self,
_req: GetTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<TagValue>> + Send
fn get_tag_value( &self, _req: GetTagValueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<TagValue>> + Send
Implements crate::client::TagValues::get_tag_value.
Sourcefn get_namespaced_tag_value(
&self,
_req: GetNamespacedTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<TagValue>> + Send
fn get_namespaced_tag_value( &self, _req: GetNamespacedTagValueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<TagValue>> + Send
Sourcefn create_tag_value(
&self,
_req: CreateTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn create_tag_value( &self, _req: CreateTagValueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::TagValues::create_tag_value.
Sourcefn update_tag_value(
&self,
_req: UpdateTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn update_tag_value( &self, _req: UpdateTagValueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::TagValues::update_tag_value.
Sourcefn delete_tag_value(
&self,
_req: DeleteTagValueRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn delete_tag_value( &self, _req: DeleteTagValueRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::TagValues::delete_tag_value.
Sourcefn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Policy>> + Send
fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Policy>> + Send
Implements crate::client::TagValues::get_iam_policy.
Sourcefn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Policy>> + Send
fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Policy>> + Send
Implements crate::client::TagValues::set_iam_policy.
Sourcefn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<TestIamPermissionsResponse>> + Send
fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<TestIamPermissionsResponse>> + Send
Implements crate::client::TagValues::test_iam_permissions.
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::TagValues::get_operation.
Sourcefn get_polling_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingPolicy>
fn get_polling_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingPolicy>
Returns the polling 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.