pub struct TaxProductResourceTaxCalculationShippingCost {
pub amount: i64,
pub amount_tax: i64,
pub shipping_rate: Option<String>,
pub tax_behavior: TaxProductResourceTaxCalculationShippingCostTaxBehavior,
pub tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>,
pub tax_code: String,
}Fields§
§amount: i64The shipping amount in the smallest currency unit.
If tax_behavior=inclusive, then this amount includes taxes.
Otherwise, taxes were calculated on top of this amount.
amount_tax: i64The amount of tax calculated for shipping, in the smallest currency unit.
shipping_rate: Option<String>The ID of an existing ShippingRate.
tax_behavior: TaxProductResourceTaxCalculationShippingCostTaxBehaviorSpecifies whether the amount includes taxes.
If tax_behavior=inclusive, then the amount includes taxes.
tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>Detailed account of taxes relevant to shipping cost.
tax_code: StringThe tax code ID used for shipping.
Trait Implementations§
Source§impl Clone for TaxProductResourceTaxCalculationShippingCost
impl Clone for TaxProductResourceTaxCalculationShippingCost
Source§fn clone(&self) -> TaxProductResourceTaxCalculationShippingCost
fn clone(&self) -> TaxProductResourceTaxCalculationShippingCost
Returns a duplicate 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 FromValueOpt for TaxProductResourceTaxCalculationShippingCost
impl FromValueOpt for TaxProductResourceTaxCalculationShippingCost
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for TaxProductResourceTaxCalculationShippingCost
impl RefUnwindSafe for TaxProductResourceTaxCalculationShippingCost
impl Send for TaxProductResourceTaxCalculationShippingCost
impl Sync for TaxProductResourceTaxCalculationShippingCost
impl Unpin for TaxProductResourceTaxCalculationShippingCost
impl UnwindSafe for TaxProductResourceTaxCalculationShippingCost
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