DocumentProcessorService

Trait DocumentProcessorService 

Source
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§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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.

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§