Struct aws_sdk_textract::types::ExpenseField
source · #[non_exhaustive]pub struct ExpenseField {
pub type: Option<ExpenseType>,
pub label_detection: Option<ExpenseDetection>,
pub value_detection: Option<ExpenseDetection>,
pub page_number: Option<i32>,
pub currency: Option<ExpenseCurrency>,
pub group_properties: Option<Vec<ExpenseGroupProperty>>,
}
Expand description
Breakdown of detected information, seperated into the catagories Type, LabelDetection, and ValueDetection
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: Option<ExpenseType>
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
label_detection: Option<ExpenseDetection>
The explicitly stated label of a detected element.
value_detection: Option<ExpenseDetection>
The value of a detected element. Present in explicit and implicit elements.
page_number: Option<i32>
The page number the value was detected on.
currency: Option<ExpenseCurrency>
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
group_properties: Option<Vec<ExpenseGroupProperty>>
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.
Implementations§
source§impl ExpenseField
impl ExpenseField
sourcepub fn type(&self) -> Option<&ExpenseType>
pub fn type(&self) -> Option<&ExpenseType>
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
sourcepub fn label_detection(&self) -> Option<&ExpenseDetection>
pub fn label_detection(&self) -> Option<&ExpenseDetection>
The explicitly stated label of a detected element.
sourcepub fn value_detection(&self) -> Option<&ExpenseDetection>
pub fn value_detection(&self) -> Option<&ExpenseDetection>
The value of a detected element. Present in explicit and implicit elements.
sourcepub fn page_number(&self) -> Option<i32>
pub fn page_number(&self) -> Option<i32>
The page number the value was detected on.
sourcepub fn currency(&self) -> Option<&ExpenseCurrency>
pub fn currency(&self) -> Option<&ExpenseCurrency>
Shows the kind of currency, both the code and confidence associated with any monatary value detected.
sourcepub fn group_properties(&self) -> &[ExpenseGroupProperty]
pub fn group_properties(&self) -> &[ExpenseGroupProperty]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .group_properties.is_none()
.
source§impl ExpenseField
impl ExpenseField
sourcepub fn builder() -> ExpenseFieldBuilder
pub fn builder() -> ExpenseFieldBuilder
Creates a new builder-style object to manufacture ExpenseField
.
Trait Implementations§
source§impl Clone for ExpenseField
impl Clone for ExpenseField
source§fn clone(&self) -> ExpenseField
fn clone(&self) -> ExpenseField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExpenseField
impl Debug for ExpenseField
source§impl PartialEq for ExpenseField
impl PartialEq for ExpenseField
source§fn eq(&self, other: &ExpenseField) -> bool
fn eq(&self, other: &ExpenseField) -> bool
self
and other
values to be equal, and is used
by ==
.