Struct aws_sdk_textract::model::expense_field::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ExpenseField
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: ExpenseType) -> Self
pub fn type(self, input: ExpenseType) -> Self
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
sourcepub fn set_type(self, input: Option<ExpenseType>) -> Self
pub fn set_type(self, input: Option<ExpenseType>) -> Self
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
sourcepub fn label_detection(self, input: ExpenseDetection) -> Self
pub fn label_detection(self, input: ExpenseDetection) -> Self
The explicitly stated label of a detected element.
sourcepub fn set_label_detection(self, input: Option<ExpenseDetection>) -> Self
pub fn set_label_detection(self, input: Option<ExpenseDetection>) -> Self
The explicitly stated label of a detected element.
sourcepub fn value_detection(self, input: ExpenseDetection) -> Self
pub fn value_detection(self, input: ExpenseDetection) -> Self
The value of a detected element. Present in explicit and implicit elements.
sourcepub fn set_value_detection(self, input: Option<ExpenseDetection>) -> Self
pub fn set_value_detection(self, input: Option<ExpenseDetection>) -> Self
The value of a detected element. Present in explicit and implicit elements.
sourcepub fn page_number(self, input: i32) -> Self
pub fn page_number(self, input: i32) -> Self
The page number the value was detected on.
sourcepub fn set_page_number(self, input: Option<i32>) -> Self
pub fn set_page_number(self, input: Option<i32>) -> Self
The page number the value was detected on.
sourcepub fn currency(self, input: ExpenseCurrency) -> Self
pub fn currency(self, input: ExpenseCurrency) -> Self
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
sourcepub fn set_currency(self, input: Option<ExpenseCurrency>) -> Self
pub fn set_currency(self, input: Option<ExpenseCurrency>) -> Self
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
sourcepub fn group_properties(self, input: ExpenseGroupProperty) -> Self
pub fn group_properties(self, input: ExpenseGroupProperty) -> Self
Appends an item to group_properties
.
To override the contents of this collection use set_group_properties
.
Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.
sourcepub fn set_group_properties(
self,
input: Option<Vec<ExpenseGroupProperty>>
) -> Self
pub fn set_group_properties(
self,
input: Option<Vec<ExpenseGroupProperty>>
) -> Self
Shows which group a response object belongs to, such as whether an address line belongs to the vendor's address or the recipent's address.
sourcepub fn build(self) -> ExpenseField
pub fn build(self) -> ExpenseField
Consumes the builder and constructs a ExpenseField
.