pub trait DocumentProcessorService:
Debug
+ Send
+ Sync {
Show 29 methods
// Provided methods
fn process_document(
&self,
_req: ProcessRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ProcessResponse>>> + Send { ... }
fn batch_process_documents(
&self,
_req: BatchProcessRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn fetch_processor_types(
&self,
_req: FetchProcessorTypesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchProcessorTypesResponse>>> + Send { ... }
fn list_processor_types(
&self,
_req: ListProcessorTypesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListProcessorTypesResponse>>> + Send { ... }
fn get_processor_type(
&self,
_req: GetProcessorTypeRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ProcessorType>>> + Send { ... }
fn list_processors(
&self,
_req: ListProcessorsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListProcessorsResponse>>> + Send { ... }
fn get_processor(
&self,
_req: GetProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Processor>>> + Send { ... }
fn train_processor_version(
&self,
_req: TrainProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_processor_version(
&self,
_req: GetProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ProcessorVersion>>> + Send { ... }
fn list_processor_versions(
&self,
_req: ListProcessorVersionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListProcessorVersionsResponse>>> + Send { ... }
fn delete_processor_version(
&self,
_req: DeleteProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn deploy_processor_version(
&self,
_req: DeployProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn undeploy_processor_version(
&self,
_req: UndeployProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn create_processor(
&self,
_req: CreateProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Processor>>> + Send { ... }
fn delete_processor(
&self,
_req: DeleteProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn enable_processor(
&self,
_req: EnableProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn disable_processor(
&self,
_req: DisableProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn set_default_processor_version(
&self,
_req: SetDefaultProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn review_document(
&self,
_req: ReviewDocumentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn evaluate_processor_version(
&self,
_req: EvaluateProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_evaluation(
&self,
_req: GetEvaluationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Evaluation>>> + Send { ... }
fn list_evaluations(
&self,
_req: ListEvaluationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListEvaluationsResponse>>> + 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 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 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::DocumentProcessorService.
Application developers may need to implement this trait to mock
client::DocumentProcessorService. In other use-cases, application developers only
use client::DocumentProcessorService 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 process_document(
&self,
_req: ProcessRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ProcessResponse>>> + Send
fn process_document( &self, _req: ProcessRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ProcessResponse>>> + Send
Sourcefn batch_process_documents(
&self,
_req: BatchProcessRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn batch_process_documents( &self, _req: BatchProcessRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn fetch_processor_types(
&self,
_req: FetchProcessorTypesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchProcessorTypesResponse>>> + Send
fn fetch_processor_types( &self, _req: FetchProcessorTypesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FetchProcessorTypesResponse>>> + Send
Sourcefn list_processor_types(
&self,
_req: ListProcessorTypesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListProcessorTypesResponse>>> + Send
fn list_processor_types( &self, _req: ListProcessorTypesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListProcessorTypesResponse>>> + Send
Sourcefn get_processor_type(
&self,
_req: GetProcessorTypeRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ProcessorType>>> + Send
fn get_processor_type( &self, _req: GetProcessorTypeRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ProcessorType>>> + Send
Sourcefn list_processors(
&self,
_req: ListProcessorsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListProcessorsResponse>>> + Send
fn list_processors( &self, _req: ListProcessorsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListProcessorsResponse>>> + Send
Sourcefn get_processor(
&self,
_req: GetProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Processor>>> + Send
fn get_processor( &self, _req: GetProcessorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Processor>>> + Send
Sourcefn train_processor_version(
&self,
_req: TrainProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn train_processor_version( &self, _req: TrainProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn get_processor_version(
&self,
_req: GetProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ProcessorVersion>>> + Send
fn get_processor_version( &self, _req: GetProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ProcessorVersion>>> + Send
Sourcefn list_processor_versions(
&self,
_req: ListProcessorVersionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListProcessorVersionsResponse>>> + Send
fn list_processor_versions( &self, _req: ListProcessorVersionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListProcessorVersionsResponse>>> + Send
Sourcefn delete_processor_version(
&self,
_req: DeleteProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_processor_version( &self, _req: DeleteProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn deploy_processor_version(
&self,
_req: DeployProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn deploy_processor_version( &self, _req: DeployProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn undeploy_processor_version(
&self,
_req: UndeployProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn undeploy_processor_version( &self, _req: UndeployProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn create_processor(
&self,
_req: CreateProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Processor>>> + Send
fn create_processor( &self, _req: CreateProcessorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Processor>>> + Send
Sourcefn delete_processor(
&self,
_req: DeleteProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_processor( &self, _req: DeleteProcessorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn enable_processor(
&self,
_req: EnableProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn enable_processor( &self, _req: EnableProcessorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn disable_processor(
&self,
_req: DisableProcessorRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn disable_processor( &self, _req: DisableProcessorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn set_default_processor_version(
&self,
_req: SetDefaultProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn set_default_processor_version( &self, _req: SetDefaultProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn review_document(
&self,
_req: ReviewDocumentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn review_document( &self, _req: ReviewDocumentRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn evaluate_processor_version(
&self,
_req: EvaluateProcessorVersionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn evaluate_processor_version( &self, _req: EvaluateProcessorVersionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn get_evaluation(
&self,
_req: GetEvaluationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Evaluation>>> + Send
fn get_evaluation( &self, _req: GetEvaluationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Evaluation>>> + Send
Sourcefn list_evaluations(
&self,
_req: ListEvaluationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListEvaluationsResponse>>> + Send
fn list_evaluations( &self, _req: ListEvaluationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListEvaluationsResponse>>> + Send
Sourcefn list_locations(
&self,
_req: ListLocationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send
fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send
Sourcefn get_location(
&self,
_req: GetLocationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Location>>> + Send
fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send
Sourcefn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn cancel_operation(
&self,
_req: CancelOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy>
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.
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.