Struct stripe::generated::tax_calculation::tax_calculation::TaxProductResourceTaxCalculationShippingCost
source · 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: i64
The 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: i64
The amount of tax calculated for shipping, in the smallest currency unit.
shipping_rate: Option<String>
The ID of an existing ShippingRate.
tax_behavior: TaxProductResourceTaxCalculationShippingCostTaxBehavior
Specifies 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: String
The 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 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 Default for TaxProductResourceTaxCalculationShippingCost
impl Default for TaxProductResourceTaxCalculationShippingCost
source§fn default() -> TaxProductResourceTaxCalculationShippingCost
fn default() -> TaxProductResourceTaxCalculationShippingCost
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TaxProductResourceTaxCalculationShippingCost
impl<'de> Deserialize<'de> for TaxProductResourceTaxCalculationShippingCost
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 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