Struct aws_sdk_textract::input::AnalyzeDocumentInput [−][src]
#[non_exhaustive]pub struct AnalyzeDocumentInput {
pub document: Option<Document>,
pub feature_types: Option<Vec<FeatureType>>,
pub human_loop_config: Option<HumanLoopConfig>,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.document: Option<Document>The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode
image bytes that are passed using the Bytes field.
feature_types: Option<Vec<FeatureType>>A list of the types of analysis to perform. Add TABLES to the list to return information
about the tables that are detected in the input document. Add FORMS to return detected form data.
To perform both types of analysis, add TABLES and FORMS to
FeatureTypes. All lines and words detected in the document are included in
the response (including text that isn't related to the value of FeatureTypes).
human_loop_config: Option<HumanLoopConfig>Sets the configuration for the human in the loop workflow for analyzing documents.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AnalyzeDocument, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AnalyzeDocument, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<AnalyzeDocument>
Creates a new builder-style object to manufacture AnalyzeDocumentInput
The input document as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Textract operations, you can't pass image bytes. The document must be an image in JPEG or PNG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode
image bytes that are passed using the Bytes field.
A list of the types of analysis to perform. Add TABLES to the list to return information
about the tables that are detected in the input document. Add FORMS to return detected form data.
To perform both types of analysis, add TABLES and FORMS to
FeatureTypes. All lines and words detected in the document are included in
the response (including text that isn't related to the value of FeatureTypes).
Sets the configuration for the human in the loop workflow for analyzing documents.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AnalyzeDocumentInput
impl Send for AnalyzeDocumentInput
impl Sync for AnalyzeDocumentInput
impl Unpin for AnalyzeDocumentInput
impl UnwindSafe for AnalyzeDocumentInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more