pub struct LineItemsTaxAmount {
pub amount: i64,
pub rate: TaxRate,
pub taxability_reason: Option<LineItemsTaxAmountTaxabilityReason>,
pub taxable_amount: Option<i64>,
}Fields§
§amount: i64Amount of tax applied for this rate.
rate: TaxRate§taxability_reason: Option<LineItemsTaxAmountTaxabilityReason>The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
taxable_amount: Option<i64>The amount on which tax is calculated, in cents (or local equivalent).
Trait Implementations§
Source§impl Clone for LineItemsTaxAmount
impl Clone for LineItemsTaxAmount
Source§fn clone(&self) -> LineItemsTaxAmount
fn clone(&self) -> LineItemsTaxAmount
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 LineItemsTaxAmount
impl Debug for LineItemsTaxAmount
Source§impl Deserialize for LineItemsTaxAmount
impl Deserialize for LineItemsTaxAmount
Source§impl FromValueOpt for LineItemsTaxAmount
impl FromValueOpt for LineItemsTaxAmount
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for LineItemsTaxAmount
impl RefUnwindSafe for LineItemsTaxAmount
impl Send for LineItemsTaxAmount
impl Sync for LineItemsTaxAmount
impl Unpin for LineItemsTaxAmount
impl UnsafeUnpin for LineItemsTaxAmount
impl UnwindSafe for LineItemsTaxAmount
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