pub struct LineItemTax {
pub line_item_id: String,
pub taxable_amount: Decimal,
pub tax_amount: Decimal,
pub effective_rate: Decimal,
pub is_exempt: bool,
pub exemption_reason: Option<String>,
pub tax_details: Vec<TaxDetail>,
}Expand description
Tax for a specific line item
Fields§
§line_item_id: StringLine item ID
taxable_amount: DecimalTaxable amount for this item
tax_amount: DecimalTotal tax for this item
effective_rate: DecimalEffective tax rate
is_exempt: boolWhether item was exempt
exemption_reason: Option<String>Reason for exemption if exempt
tax_details: Vec<TaxDetail>Breakdown by tax type
Trait Implementations§
Source§impl Clone for LineItemTax
impl Clone for LineItemTax
Source§fn clone(&self) -> LineItemTax
fn clone(&self) -> LineItemTax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineItemTax
impl Debug for LineItemTax
Source§impl<'de> Deserialize<'de> for LineItemTax
impl<'de> Deserialize<'de> for LineItemTax
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LineItemTax, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LineItemTax, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LineItemTax
impl Serialize for LineItemTax
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LineItemTax
impl RefUnwindSafe for LineItemTax
impl Send for LineItemTax
impl Sync for LineItemTax
impl Unpin for LineItemTax
impl UnsafeUnpin for LineItemTax
impl UnwindSafe for LineItemTax
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