#[non_exhaustive]pub struct DocumentReaderConfigBuilder { /* private fields */ }Expand description
A builder for DocumentReaderConfig.
Implementations§
source§impl DocumentReaderConfigBuilder
impl DocumentReaderConfigBuilder
sourcepub fn document_read_action(self, input: DocumentReadAction) -> Self
pub fn document_read_action(self, input: DocumentReadAction) -> Self
This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract text from PDF files and image files. Enter one of the following values:
-
TEXTRACT_DETECT_DOCUMENT_TEXT- The Amazon Comprehend service uses theDetectDocumentTextAPI operation. -
TEXTRACT_ANALYZE_DOCUMENT- The Amazon Comprehend service uses theAnalyzeDocumentAPI operation.
sourcepub fn set_document_read_action(self, input: Option<DocumentReadAction>) -> Self
pub fn set_document_read_action(self, input: Option<DocumentReadAction>) -> Self
This field defines the Amazon Textract API operation that Amazon Comprehend uses to extract text from PDF files and image files. Enter one of the following values:
-
TEXTRACT_DETECT_DOCUMENT_TEXT- The Amazon Comprehend service uses theDetectDocumentTextAPI operation. -
TEXTRACT_ANALYZE_DOCUMENT- The Amazon Comprehend service uses theAnalyzeDocumentAPI operation.
sourcepub fn document_read_mode(self, input: DocumentReadMode) -> Self
pub fn document_read_mode(self, input: DocumentReadMode) -> Self
Determines the text extraction actions for PDF files. Enter one of the following values:
-
SERVICE_DEFAULT- use the Amazon Comprehend service defaults for PDF files. -
FORCE_DOCUMENT_READ_ACTION- Amazon Comprehend uses the Textract API specified by DocumentReadAction for all PDF files, including digital PDF files.
sourcepub fn set_document_read_mode(self, input: Option<DocumentReadMode>) -> Self
pub fn set_document_read_mode(self, input: Option<DocumentReadMode>) -> Self
Determines the text extraction actions for PDF files. Enter one of the following values:
-
SERVICE_DEFAULT- use the Amazon Comprehend service defaults for PDF files. -
FORCE_DOCUMENT_READ_ACTION- Amazon Comprehend uses the Textract API specified by DocumentReadAction for all PDF files, including digital PDF files.
sourcepub fn feature_types(self, input: DocumentReadFeatureTypes) -> Self
pub fn feature_types(self, input: DocumentReadFeatureTypes) -> Self
Appends an item to feature_types.
To override the contents of this collection use set_feature_types.
Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:
-
TABLES- Returns information about any tables that are detected in the input document. -
FORMS- Returns information and the data from any forms that are detected in the input document.
sourcepub fn set_feature_types(
self,
input: Option<Vec<DocumentReadFeatureTypes>>
) -> Self
pub fn set_feature_types( self, input: Option<Vec<DocumentReadFeatureTypes>> ) -> Self
Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:
-
TABLES- Returns information about any tables that are detected in the input document. -
FORMS- Returns information and the data from any forms that are detected in the input document.
sourcepub fn build(self) -> DocumentReaderConfig
pub fn build(self) -> DocumentReaderConfig
Consumes the builder and constructs a DocumentReaderConfig.
Trait Implementations§
source§impl Clone for DocumentReaderConfigBuilder
impl Clone for DocumentReaderConfigBuilder
source§fn clone(&self) -> DocumentReaderConfigBuilder
fn clone(&self) -> DocumentReaderConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DocumentReaderConfigBuilder
impl Debug for DocumentReaderConfigBuilder
source§impl Default for DocumentReaderConfigBuilder
impl Default for DocumentReaderConfigBuilder
source§fn default() -> DocumentReaderConfigBuilder
fn default() -> DocumentReaderConfigBuilder
source§impl PartialEq<DocumentReaderConfigBuilder> for DocumentReaderConfigBuilder
impl PartialEq<DocumentReaderConfigBuilder> for DocumentReaderConfigBuilder
source§fn eq(&self, other: &DocumentReaderConfigBuilder) -> bool
fn eq(&self, other: &DocumentReaderConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.