Struct aws_sdk_textract::types::PageClassification
source · #[non_exhaustive]pub struct PageClassification {
pub page_type: Vec<Prediction>,
pub page_number: Vec<Prediction>,
}
Expand description
The class assigned to a Page object detected in an input document. Contains information regarding the predicted type/class of a document's page and the page number that the Page object was detected on.
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.page_type: Vec<Prediction>
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
page_number: Vec<Prediction>
The page number the value was detected on, relative to Amazon Textract's starting position.
Implementations§
source§impl PageClassification
impl PageClassification
sourcepub fn page_type(&self) -> &[Prediction]
pub fn page_type(&self) -> &[Prediction]
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
sourcepub fn page_number(&self) -> &[Prediction]
pub fn page_number(&self) -> &[Prediction]
The page number the value was detected on, relative to Amazon Textract's starting position.
source§impl PageClassification
impl PageClassification
sourcepub fn builder() -> PageClassificationBuilder
pub fn builder() -> PageClassificationBuilder
Creates a new builder-style object to manufacture PageClassification
.
Trait Implementations§
source§impl Clone for PageClassification
impl Clone for PageClassification
source§fn clone(&self) -> PageClassification
fn clone(&self) -> PageClassification
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 PageClassification
impl Debug for PageClassification
source§impl PartialEq for PageClassification
impl PartialEq for PageClassification
source§fn eq(&self, other: &PageClassification) -> bool
fn eq(&self, other: &PageClassification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PageClassification
Auto Trait Implementations§
impl RefUnwindSafe for PageClassification
impl Send for PageClassification
impl Sync for PageClassification
impl Unpin for PageClassification
impl UnwindSafe for PageClassification
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.