pub struct Builder { /* private fields */ }Expand description
A builder for DetectDocumentTextOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn document_metadata(self, input: DocumentMetadata) -> Self
pub fn document_metadata(self, input: DocumentMetadata) -> Self
Metadata about the document. It contains the number of pages that are detected in the document.
sourcepub fn set_document_metadata(self, input: Option<DocumentMetadata>) -> Self
pub fn set_document_metadata(self, input: Option<DocumentMetadata>) -> Self
Metadata about the document. It contains the number of pages that are detected in the document.
sourcepub fn blocks(self, input: Block) -> Self
pub fn blocks(self, input: Block) -> Self
Appends an item to blocks.
To override the contents of this collection use set_blocks.
An array of Block objects that contain the text that's detected in the document.
sourcepub fn set_blocks(self, input: Option<Vec<Block>>) -> Self
pub fn set_blocks(self, input: Option<Vec<Block>>) -> Self
An array of Block objects that contain the text that's detected in the document.
sourcepub fn detect_document_text_model_version(self, input: impl Into<String>) -> Self
pub fn detect_document_text_model_version(self, input: impl Into<String>) -> Self
sourcepub fn set_detect_document_text_model_version(
self,
input: Option<String>
) -> Self
pub fn set_detect_document_text_model_version(
self,
input: Option<String>
) -> Self
sourcepub fn build(self) -> DetectDocumentTextOutput
pub fn build(self) -> DetectDocumentTextOutput
Consumes the builder and constructs a DetectDocumentTextOutput.