pub struct InvoiceLineItem {
pub project: Option<Value>,
pub id: Option<i64>,
pub unit_price: Option<f64>,
pub taxed2: Option<bool>,
pub kind: Option<String>,
pub description: Option<String>,
pub amount: Option<f64>,
pub quantity: Option<f64>,
pub taxed: Option<bool>,
}Fields§
§project: Option<Value>An object containing the associated project’s id, name, and code.
id: Option<i64>Unique ID for the line item.
unit_price: Option<f64>The individual price per unit.
taxed2: Option<bool>Whether the invoice’s tax2 percentage applies to this line item.
kind: Option<String>The name of an invoice item category.
description: Option<String>Text description of the line item.
amount: Option<f64>The line item subtotal (quantity * unit_price).
quantity: Option<f64>The unit quantity of the item.
taxed: Option<bool>Whether the invoice’s tax percentage applies to this line item.
Trait Implementations§
Source§impl Debug for InvoiceLineItem
impl Debug for InvoiceLineItem
Source§impl<'de> Deserialize<'de> for InvoiceLineItem
impl<'de> Deserialize<'de> for InvoiceLineItem
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
Source§impl Display for InvoiceLineItem
impl Display for InvoiceLineItem
Auto Trait Implementations§
impl Freeze for InvoiceLineItem
impl RefUnwindSafe for InvoiceLineItem
impl Send for InvoiceLineItem
impl Sync for InvoiceLineItem
impl Unpin for InvoiceLineItem
impl UnwindSafe for InvoiceLineItem
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