Struct aws_sdk_textract::types::builders::PageClassificationBuilder
source · #[non_exhaustive]pub struct PageClassificationBuilder { /* private fields */ }
Expand description
A builder for PageClassification
.
Implementations§
source§impl PageClassificationBuilder
impl PageClassificationBuilder
sourcepub fn page_type(self, input: Prediction) -> Self
pub fn page_type(self, input: Prediction) -> Self
Appends an item to page_type
.
To override the contents of this collection use set_page_type
.
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
sourcepub fn set_page_type(self, input: Option<Vec<Prediction>>) -> Self
pub fn set_page_type(self, input: Option<Vec<Prediction>>) -> Self
The class, or document type, assigned to a detected Page object. The class, or document type, assigned to a detected Page object.
sourcepub fn get_page_type(&self) -> &Option<Vec<Prediction>>
pub fn get_page_type(&self) -> &Option<Vec<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, input: Prediction) -> Self
pub fn page_number(self, input: Prediction) -> Self
Appends an item to page_number
.
To override the contents of this collection use set_page_number
.
The page number the value was detected on, relative to Amazon Textract's starting position.
sourcepub fn set_page_number(self, input: Option<Vec<Prediction>>) -> Self
pub fn set_page_number(self, input: Option<Vec<Prediction>>) -> Self
The page number the value was detected on, relative to Amazon Textract's starting position.
sourcepub fn get_page_number(&self) -> &Option<Vec<Prediction>>
pub fn get_page_number(&self) -> &Option<Vec<Prediction>>
The page number the value was detected on, relative to Amazon Textract's starting position.
sourcepub fn build(self) -> Result<PageClassification, BuildError>
pub fn build(self) -> Result<PageClassification, BuildError>
Consumes the builder and constructs a PageClassification
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PageClassificationBuilder
impl Clone for PageClassificationBuilder
source§fn clone(&self) -> PageClassificationBuilder
fn clone(&self) -> PageClassificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PageClassificationBuilder
impl Debug for PageClassificationBuilder
source§impl Default for PageClassificationBuilder
impl Default for PageClassificationBuilder
source§fn default() -> PageClassificationBuilder
fn default() -> PageClassificationBuilder
source§impl PartialEq for PageClassificationBuilder
impl PartialEq for PageClassificationBuilder
source§fn eq(&self, other: &PageClassificationBuilder) -> bool
fn eq(&self, other: &PageClassificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PageClassificationBuilder
Auto Trait Implementations§
impl Freeze for PageClassificationBuilder
impl RefUnwindSafe for PageClassificationBuilder
impl Send for PageClassificationBuilder
impl Sync for PageClassificationBuilder
impl Unpin for PageClassificationBuilder
impl UnwindSafe for PageClassificationBuilder
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