pub trait Projects:
Debug
+ Send
+ Sync {
Show 14 methods
// Provided methods
fn get_project(
&self,
_req: GetProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Project>> + Send { ... }
fn list_projects(
&self,
_req: ListProjectsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<ListProjectsResponse>> + Send { ... }
fn search_projects(
&self,
_req: SearchProjectsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<SearchProjectsResponse>> + Send { ... }
fn create_project(
&self,
_req: CreateProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn update_project(
&self,
_req: UpdateProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn move_project(
&self,
_req: MoveProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn delete_project(
&self,
_req: DeleteProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send { ... }
fn undelete_project(
&self,
_req: UndeleteProjectRequest,
_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::Projects.
Application developers may need to implement this trait to mock
client::Projects. In other use-cases, application developers only
use client::Projects 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 get_project(
&self,
_req: GetProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Project>> + Send
fn get_project( &self, _req: GetProjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Project>> + Send
Implements crate::client::Projects::get_project.
Sourcefn list_projects(
&self,
_req: ListProjectsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<ListProjectsResponse>> + Send
fn list_projects( &self, _req: ListProjectsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListProjectsResponse>> + Send
Implements crate::client::Projects::list_projects.
Sourcefn search_projects(
&self,
_req: SearchProjectsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<SearchProjectsResponse>> + Send
fn search_projects( &self, _req: SearchProjectsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<SearchProjectsResponse>> + Send
Implements crate::client::Projects::search_projects.
Sourcefn create_project(
&self,
_req: CreateProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn create_project( &self, _req: CreateProjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::Projects::create_project.
Sourcefn update_project(
&self,
_req: UpdateProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn update_project( &self, _req: UpdateProjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::Projects::update_project.
Sourcefn move_project(
&self,
_req: MoveProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn move_project( &self, _req: MoveProjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::Projects::move_project.
Sourcefn delete_project(
&self,
_req: DeleteProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn delete_project( &self, _req: DeleteProjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::Projects::delete_project.
Sourcefn undelete_project(
&self,
_req: UndeleteProjectRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Operation>> + Send
fn undelete_project( &self, _req: UndeleteProjectRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send
Implements crate::client::Projects::undelete_project.
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::Projects::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::Projects::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::Projects::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::Projects::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.