pub struct Invoice {Show 14 fields
pub id: String,
pub issue_date: String,
pub currency_code: String,
pub line_items: Vec<LineItem>,
pub tax_total: Option<TaxTotal>,
pub total: f64,
pub sub_total: Option<f64>,
pub due_date: Option<String>,
pub note: Option<String>,
pub payment_terms: Option<String>,
pub accounting_cost: Option<String>,
pub order_reference: Option<OrderReference>,
pub additional_document_reference: Option<Vec<DocumentReference>>,
pub metadata: HashMap<String, Value>,
}Expand description
Invoice structure according to TAIP-16
Fields§
§id: StringUnique identifier for the invoice
issue_date: StringDate when the invoice was issued (ISO 8601 format)
currency_code: StringISO 4217 currency code
line_items: Vec<LineItem>Line items in the invoice
tax_total: Option<TaxTotal>Optional tax total information
total: f64Total amount of the invoice, including taxes
sub_total: Option<f64>Optional sum of line totals before taxes
due_date: Option<String>Optional due date for payment (ISO 8601 format)
note: Option<String>Optional additional notes
payment_terms: Option<String>Optional payment terms
accounting_cost: Option<String>Optional accounting cost code
order_reference: Option<OrderReference>Optional order reference
additional_document_reference: Option<Vec<DocumentReference>>Optional references to additional documents
metadata: HashMap<String, Value>Additional metadata
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Invoice
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnwindSafe for Invoice
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
Mutably borrows from an owned value. Read more