aws-sdk-textract 1.25.0

AWS SDK for Amazon Textract
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn type_erase_result<O, E>(
    result: ::std::result::Result<O, E>,
) -> ::std::result::Result<
    ::aws_smithy_runtime_api::client::interceptors::context::Output,
    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
>
where
    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
    E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
{
    result
        .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
        .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
        .map_err(::std::convert::Into::into)
}

pub fn parse_http_error_metadata(
    _response_status: u16,
    response_headers: &::aws_smithy_runtime_api::http::Headers,
    response_body: &[u8],
) -> Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
    crate::json_errors::parse_error_metadata(response_body, response_headers)
}

pub(crate) mod shape_analyze_document;

pub(crate) mod shape_analyze_expense;

pub(crate) mod shape_analyze_id;

pub(crate) mod shape_create_adapter;

pub(crate) mod shape_create_adapter_version;

pub(crate) mod shape_delete_adapter;

pub(crate) mod shape_delete_adapter_version;

pub(crate) mod shape_detect_document_text;

pub(crate) mod shape_get_adapter;

pub(crate) mod shape_get_adapter_version;

pub(crate) mod shape_get_document_analysis;

pub(crate) mod shape_get_document_text_detection;

pub(crate) mod shape_get_expense_analysis;

pub(crate) mod shape_get_lending_analysis;

pub(crate) mod shape_get_lending_analysis_summary;

pub(crate) mod shape_list_adapter_versions;

pub(crate) mod shape_list_adapters;

pub(crate) mod shape_list_tags_for_resource;

pub(crate) mod shape_start_document_analysis;

pub(crate) mod shape_start_document_text_detection;

pub(crate) mod shape_start_expense_analysis;

pub(crate) mod shape_start_lending_analysis;

pub(crate) mod shape_tag_resource;

pub(crate) mod shape_untag_resource;

pub(crate) mod shape_update_adapter;

pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
    if data.is_empty() {
        b"{}"
    } else {
        data
    }
}

pub(crate) mod shape_access_denied_exception;

pub(crate) mod shape_analyze_document_input;

pub(crate) mod shape_analyze_expense_input;

pub(crate) mod shape_analyze_id_input;

pub(crate) mod shape_bad_document_exception;

pub(crate) mod shape_conflict_exception;

pub(crate) mod shape_create_adapter_input;

pub(crate) mod shape_create_adapter_version_input;

pub(crate) mod shape_delete_adapter_input;

pub(crate) mod shape_delete_adapter_version_input;

pub(crate) mod shape_detect_document_text_input;

pub(crate) mod shape_document_too_large_exception;

pub(crate) mod shape_get_adapter_input;

pub(crate) mod shape_get_adapter_version_input;

pub(crate) mod shape_get_document_analysis_input;

pub(crate) mod shape_get_document_text_detection_input;

pub(crate) mod shape_get_expense_analysis_input;

pub(crate) mod shape_get_lending_analysis_input;

pub(crate) mod shape_get_lending_analysis_summary_input;

pub(crate) mod shape_human_loop_quota_exceeded_exception;

pub(crate) mod shape_idempotent_parameter_mismatch_exception;

pub(crate) mod shape_internal_server_error;

pub(crate) mod shape_invalid_job_id_exception;

pub(crate) mod shape_invalid_kms_key_exception;

pub(crate) mod shape_invalid_parameter_exception;

pub(crate) mod shape_invalid_s3_object_exception;

pub(crate) mod shape_limit_exceeded_exception;

pub(crate) mod shape_list_adapter_versions_input;

pub(crate) mod shape_list_adapters_input;

pub(crate) mod shape_list_tags_for_resource_input;

pub(crate) mod shape_provisioned_throughput_exceeded_exception;

pub(crate) mod shape_resource_not_found_exception;

pub(crate) mod shape_service_quota_exceeded_exception;

pub(crate) mod shape_start_document_analysis_input;

pub(crate) mod shape_start_document_text_detection_input;

pub(crate) mod shape_start_expense_analysis_input;

pub(crate) mod shape_start_lending_analysis_input;

pub(crate) mod shape_tag_resource_input;

pub(crate) mod shape_throttling_exception;

pub(crate) mod shape_unsupported_document_exception;

pub(crate) mod shape_untag_resource_input;

pub(crate) mod shape_update_adapter_input;

pub(crate) mod shape_validation_exception;

pub(crate) mod shape_adapter_list;

pub(crate) mod shape_adapter_version_dataset_config;

pub(crate) mod shape_adapter_version_evaluation_metrics;

pub(crate) mod shape_adapter_version_list;

pub(crate) mod shape_adapters_config;

pub(crate) mod shape_block_list;

pub(crate) mod shape_document;

pub(crate) mod shape_document_location;

pub(crate) mod shape_document_metadata;

pub(crate) mod shape_expense_document_list;

pub(crate) mod shape_feature_types;

pub(crate) mod shape_human_loop_activation_output;

pub(crate) mod shape_human_loop_config;

pub(crate) mod shape_identity_document_list;

pub(crate) mod shape_lending_result_list;

pub(crate) mod shape_lending_summary;

pub(crate) mod shape_notification_channel;

pub(crate) mod shape_output_config;

pub(crate) mod shape_queries_config;

pub(crate) mod shape_tag_map;

pub(crate) mod shape_warnings;

pub(crate) mod shape_adapter;

pub(crate) mod shape_adapter_overview;

pub(crate) mod shape_adapter_version_evaluation_metric;

pub(crate) mod shape_adapter_version_overview;

pub(crate) mod shape_block;

pub(crate) mod shape_document_group_list;

pub(crate) mod shape_expense_document;

pub(crate) mod shape_human_loop_activation_reasons;

pub(crate) mod shape_human_loop_data_attributes;

pub(crate) mod shape_identity_document;

pub(crate) mod shape_lending_result;

pub(crate) mod shape_query;

pub(crate) mod shape_s3_object;

pub(crate) mod shape_undetected_document_type_list;

pub(crate) mod shape_warning;

pub(crate) mod shape_document_group;

pub(crate) mod shape_entity_types;

pub(crate) mod shape_evaluation_metric;

pub(crate) mod shape_expense_field_list;

pub(crate) mod shape_extraction_list;

pub(crate) mod shape_geometry;

pub(crate) mod shape_identity_document_field_list;

pub(crate) mod shape_line_item_group_list;

pub(crate) mod shape_page_classification;

pub(crate) mod shape_pages;

pub(crate) mod shape_relationship_list;

pub(crate) mod shape_bounding_box;

pub(crate) mod shape_detected_signature_list;

pub(crate) mod shape_expense_field;

pub(crate) mod shape_extraction;

pub(crate) mod shape_identity_document_field;

pub(crate) mod shape_line_item_group;

pub(crate) mod shape_polygon;

pub(crate) mod shape_prediction_list;

pub(crate) mod shape_query_pages;

pub(crate) mod shape_relationship;

pub(crate) mod shape_split_document_list;

pub(crate) mod shape_undetected_signature_list;

pub(crate) mod shape_analyze_id_detections;

pub(crate) mod shape_detected_signature;

pub(crate) mod shape_expense_currency;

pub(crate) mod shape_expense_detection;

pub(crate) mod shape_expense_group_property_list;

pub(crate) mod shape_expense_type;

pub(crate) mod shape_id_list;

pub(crate) mod shape_lending_document;

pub(crate) mod shape_line_item_list;

pub(crate) mod shape_point;

pub(crate) mod shape_prediction;

pub(crate) mod shape_split_document;

pub(crate) mod shape_undetected_signature;

pub(crate) mod shape_expense_group_property;

pub(crate) mod shape_lending_field_list;

pub(crate) mod shape_line_item_fields;

pub(crate) mod shape_normalized_value;

pub(crate) mod shape_page_list;

pub(crate) mod shape_signature_detection_list;

pub(crate) mod shape_lending_field;

pub(crate) mod shape_signature_detection;

pub(crate) mod shape_string_list;

pub(crate) mod shape_lending_detection;

pub(crate) mod shape_lending_detection_list;