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