pub struct TaxAmount {
pub amount: i64,
pub inclusive: bool,
pub tax_rate: Expandable<TaxRate>,
pub taxability_reason: Option<TaxAmountTaxabilityReason>,
pub taxable_amount: Option<i64>,
}
Fields§
§amount: i64
The amount, in cents (or local equivalent), of the tax.
inclusive: bool
Whether this tax amount is inclusive or exclusive.
tax_rate: Expandable<TaxRate>
The tax rate that was applied to get this tax amount.
taxability_reason: Option<TaxAmountTaxabilityReason>
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<'de> Deserialize<'de> for TaxAmount
impl<'de> Deserialize<'de> for TaxAmount
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 RefUnwindSafe for TaxAmount
impl Send for TaxAmount
impl Sync for TaxAmount
impl Unpin for TaxAmount
impl UnwindSafe for TaxAmount
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