Struct aws_sdk_textract::types::S3Object
source · #[non_exhaustive]pub struct S3Object {
pub bucket: Option<String>,
pub name: Option<String>,
pub version: Option<String>,
}
Expand description
The S3 bucket name and file name that identifies the document.
The AWS Region for the S3 bucket that contains the document must match the Region that you use for Amazon Textract operations.
For Amazon Textract to process a file in an S3 bucket, the user must have permission to access the S3 bucket and file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bucket: Option<String>
The name of the S3 bucket. Note that the # character is not valid in the file name.
name: Option<String>
The file name of the input document. Synchronous operations can use image files that are in JPEG or PNG format. Asynchronous operations also support PDF and TIFF format files.
version: Option<String>
If the bucket has versioning enabled, you can specify the object version.
Implementations§
source§impl S3Object
impl S3Object
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the S3 bucket. Note that the # character is not valid in the file name.
Trait Implementations§
source§impl PartialEq for S3Object
impl PartialEq for S3Object
impl StructuralPartialEq for S3Object
Auto Trait Implementations§
impl RefUnwindSafe for S3Object
impl Send for S3Object
impl Sync for S3Object
impl Unpin for S3Object
impl UnwindSafe for S3Object
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.