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 ==
.impl StructuralPartialEq for DocumentBuilder
Auto Trait Implementations§
impl Freeze for DocumentBuilder
impl RefUnwindSafe for DocumentBuilder
impl Send for DocumentBuilder
impl Sync for DocumentBuilder
impl Unpin for DocumentBuilder
impl UnwindSafe for DocumentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more