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 ==
.