Struct aws_sdk_textract::types::builders::DocumentBuilder
source · #[non_exhaustive]pub struct DocumentBuilder { /* private fields */ }
Expand description
A builder for Document
.
Implementations§
source§impl DocumentBuilder
impl DocumentBuilder
sourcepub fn bytes(self, input: Blob) -> Self
pub fn bytes(self, input: Blob) -> Self
A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes
field.
sourcepub fn set_bytes(self, input: Option<Blob>) -> Self
pub fn set_bytes(self, input: Option<Blob>) -> Self
A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes
field.
sourcepub fn get_bytes(&self) -> &Option<Blob>
pub fn get_bytes(&self) -> &Option<Blob>
A blob of base64-encoded document bytes. The maximum size of a document that's provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format.
If you're using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes
field.
sourcepub fn s3_object(self, input: S3Object) -> Self
pub fn s3_object(self, input: S3Object) -> Self
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
sourcepub fn set_s3_object(self, input: Option<S3Object>) -> Self
pub fn set_s3_object(self, input: Option<S3Object>) -> Self
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
sourcepub fn get_s3_object(&self) -> &Option<S3Object>
pub fn get_s3_object(&self) -> &Option<S3Object>
Identifies an S3 object as the document source. The maximum size of a document that's stored in an S3 bucket is 5 MB.
Trait Implementations§
source§impl Clone for DocumentBuilder
impl Clone for DocumentBuilder
source§fn clone(&self) -> DocumentBuilder
fn clone(&self) -> DocumentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DocumentBuilder
impl Debug for DocumentBuilder
source§impl Default for DocumentBuilder
impl Default for DocumentBuilder
source§fn default() -> DocumentBuilder
fn default() -> DocumentBuilder
source§impl PartialEq for DocumentBuilder
impl PartialEq for DocumentBuilder
source§fn eq(&self, other: &DocumentBuilder) -> bool
fn eq(&self, other: &DocumentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.