Trait Folders

Source
pub trait Folders:
    Debug
    + Send
    + Sync {
Show 14 methods // Provided methods fn get_folder( &self, _req: GetFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Folder>> + Send { ... } fn list_folders( &self, _req: ListFoldersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListFoldersResponse>> + Send { ... } fn search_folders( &self, _req: SearchFoldersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<SearchFoldersResponse>> + Send { ... } fn create_folder( &self, _req: CreateFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send { ... } fn update_folder( &self, _req: UpdateFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send { ... } fn move_folder( &self, _req: MoveFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send { ... } fn delete_folder( &self, _req: DeleteFolderRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Operation>> + Send { ... } fn undelete_folder( &self, _req: UndeleteFolderRequest, _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::Folders.

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

Source

fn list_folders( &self, _req: ListFoldersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListFoldersResponse>> + Send

Source

fn search_folders( &self, _req: SearchFoldersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<SearchFoldersResponse>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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.

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§