Struct aws_sdk_comprehend::types::DocumentMetadata
source · #[non_exhaustive]pub struct DocumentMetadata {
pub pages: Option<i32>,
pub extracted_characters: Option<Vec<ExtractedCharactersListItem>>,
}
Expand description
Information about the document, discovered during text extraction.
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.pages: Option<i32>
Number of pages in the document.
extracted_characters: Option<Vec<ExtractedCharactersListItem>>
List of pages in the document, with the number of characters extracted from each page.
Implementations§
source§impl DocumentMetadata
impl DocumentMetadata
sourcepub fn extracted_characters(&self) -> &[ExtractedCharactersListItem]
pub fn extracted_characters(&self) -> &[ExtractedCharactersListItem]
List of pages in the document, with the number of characters extracted from each page.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .extracted_characters.is_none()
.
source§impl DocumentMetadata
impl DocumentMetadata
sourcepub fn builder() -> DocumentMetadataBuilder
pub fn builder() -> DocumentMetadataBuilder
Creates a new builder-style object to manufacture DocumentMetadata
.
Trait Implementations§
source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DocumentMetadata
impl Debug for DocumentMetadata
source§impl PartialEq for DocumentMetadata
impl PartialEq for DocumentMetadata
source§fn eq(&self, other: &DocumentMetadata) -> bool
fn eq(&self, other: &DocumentMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentMetadata
Auto Trait Implementations§
impl Freeze for DocumentMetadata
impl RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.