Struct aws_sdk_textract::types::ExpenseDocument
source · #[non_exhaustive]pub struct ExpenseDocument {
pub expense_index: Option<i32>,
pub summary_fields: Option<Vec<ExpenseField>>,
pub line_item_groups: Option<Vec<LineItemGroup>>,
pub blocks: Option<Vec<Block>>,
}
Expand description
The structure holding all the information returned by AnalyzeExpense
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.expense_index: Option<i32>
Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.
summary_fields: Option<Vec<ExpenseField>>
Any information found outside of a table by Amazon Textract.
line_item_groups: Option<Vec<LineItemGroup>>
Information detected on each table of a document, seperated into LineItems
.
blocks: Option<Vec<Block>>
This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.
Implementations§
source§impl ExpenseDocument
impl ExpenseDocument
sourcepub fn expense_index(&self) -> Option<i32>
pub fn expense_index(&self) -> Option<i32>
Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.
sourcepub fn summary_fields(&self) -> &[ExpenseField]
pub fn summary_fields(&self) -> &[ExpenseField]
Any information found outside of a table by Amazon Textract.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .summary_fields.is_none()
.
sourcepub fn line_item_groups(&self) -> &[LineItemGroup]
pub fn line_item_groups(&self) -> &[LineItemGroup]
Information detected on each table of a document, seperated into LineItems
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .line_item_groups.is_none()
.
sourcepub fn blocks(&self) -> &[Block]
pub fn blocks(&self) -> &[Block]
This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .blocks.is_none()
.
source§impl ExpenseDocument
impl ExpenseDocument
sourcepub fn builder() -> ExpenseDocumentBuilder
pub fn builder() -> ExpenseDocumentBuilder
Creates a new builder-style object to manufacture ExpenseDocument
.
Trait Implementations§
source§impl Clone for ExpenseDocument
impl Clone for ExpenseDocument
source§fn clone(&self) -> ExpenseDocument
fn clone(&self) -> ExpenseDocument
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExpenseDocument
impl Debug for ExpenseDocument
source§impl PartialEq for ExpenseDocument
impl PartialEq for ExpenseDocument
source§fn eq(&self, other: &ExpenseDocument) -> bool
fn eq(&self, other: &ExpenseDocument) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExpenseDocument
Auto Trait Implementations§
impl Freeze for ExpenseDocument
impl RefUnwindSafe for ExpenseDocument
impl Send for ExpenseDocument
impl Sync for ExpenseDocument
impl Unpin for ExpenseDocument
impl UnwindSafe for ExpenseDocument
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