pub struct Line {
pub line_detail: LineDetail,
pub amount: Option<f64>,
pub description: Option<String>,
pub id: Option<String>,
pub linked_txn: Option<Vec<LinkedTxn>>,
}Expand description
Line
Represents a single line within a transaction (e.g., Invoice, Bill, SalesReceipt). Encapsulates amount, description, and a specific LineDetail subtype.
Note: This type has no standalone QuickBooks API endpoint and is only used as a nested component.
Fields§
§line_detail: LineDetailDetails of the line item
amount: Option<f64>Amount total for the line item
description: Option<String>Description of the line item
id: Option<String>Unique line number
linked_txn: Option<Vec<LinkedTxn>>Linked transactions
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
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 QBCreatable for Line
impl QBCreatable for Line
fn can_create(&self) -> bool
Source§impl TaxableLine for Line
impl TaxableLine for Line
fn set_taxable(&mut self)
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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