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 ==
.impl StructuralPartialEq for ExpenseField
Auto Trait Implementations§
impl Freeze for ExpenseField
impl RefUnwindSafe for ExpenseField
impl Send for ExpenseField
impl Sync for ExpenseField
impl Unpin for ExpenseField
impl UnwindSafe for ExpenseField
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