Struct aws_sdk_textract::operation::detect_document_text::builders::DetectDocumentTextInputBuilder
source · #[non_exhaustive]pub struct DetectDocumentTextInputBuilder { /* private fields */ }
Expand description
A builder for DetectDocumentTextInput
.
Implementations§
source§impl DetectDocumentTextInputBuilder
impl DetectDocumentTextInputBuilder
sourcepub fn document(self, input: Document) -> Self
pub fn document(self, input: Document) -> Self
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.
sourcepub fn set_document(self, input: Option<Document>) -> Self
pub fn set_document(self, input: Option<Document>) -> Self
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.
sourcepub fn get_document(&self) -> &Option<Document>
pub fn get_document(&self) -> &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.
sourcepub fn build(self) -> Result<DetectDocumentTextInput, BuildError>
pub fn build(self) -> Result<DetectDocumentTextInput, BuildError>
Consumes the builder and constructs a DetectDocumentTextInput
.
source§impl DetectDocumentTextInputBuilder
impl DetectDocumentTextInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DetectDocumentTextOutput, SdkError<DetectDocumentTextError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DetectDocumentTextOutput, SdkError<DetectDocumentTextError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DetectDocumentTextInputBuilder
impl Clone for DetectDocumentTextInputBuilder
source§fn clone(&self) -> DetectDocumentTextInputBuilder
fn clone(&self) -> DetectDocumentTextInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DetectDocumentTextInputBuilder
impl Default for DetectDocumentTextInputBuilder
source§fn default() -> DetectDocumentTextInputBuilder
fn default() -> DetectDocumentTextInputBuilder
source§impl PartialEq for DetectDocumentTextInputBuilder
impl PartialEq for DetectDocumentTextInputBuilder
source§fn eq(&self, other: &DetectDocumentTextInputBuilder) -> bool
fn eq(&self, other: &DetectDocumentTextInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.