pub struct LineItemsTaxAmount {
pub amount: i64,
pub rate: TaxRate,
pub taxability_reason: Option<LineItemsTaxAmountTaxabilityReason>,
pub taxable_amount: Option<i64>,
}
Fields§
§amount: i64
Amount 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 copy of the value. Read more
1.0.0 · 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 Default for LineItemsTaxAmount
impl Default for LineItemsTaxAmount
source§fn default() -> LineItemsTaxAmount
fn default() -> LineItemsTaxAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LineItemsTaxAmount
impl<'de> Deserialize<'de> for LineItemsTaxAmount
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 LineItemsTaxAmount
impl Send for LineItemsTaxAmount
impl Sync for LineItemsTaxAmount
impl Unpin 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