pub struct Extracted {
pub category: Option<String>,
pub currency: Option<String>,
pub issued_at: Option<String>,
pub line_items: Option<Vec<LineItem>>,
pub merchant: Option<String>,
pub note: Option<String>,
pub tax_cents: Option<i32>,
pub total_cents: Option<i32>,
}Fields§
§category: Option<String>Category is the expense bucket the SCANNER guessed, as a slug — a hint only. Vendor rules override it whenever they know better, so this is the model’s reading and not the account the entry will land on.
currency: Option<String>Currency is the ISO code the document is denominated in.
issued_at: Option<String>IssuedAt is the document’s OWN date as YYYY-MM-DD — when the bill was issued, which is not when it was uploaded or when it will post.
line_items: Option<Vec<LineItem>>LineItems are the individual lines read off the document, where it had any. They need not sum to totalCents: a document may carry lines the scanner could not read, and the total is taken from the total.
merchant: Option<String>Merchant is the supplier as printed on the document.
note: Option<String>Note is anything else worth carrying from the document that has no field of its own.
tax_cents: Option<i32>TaxCents is how much of that total is tax, in cents. It is part of totalCents, not additional to it.
total_cents: Option<i32>TotalCents is the document total in whole cents, tax INCLUDED.