pub struct TaxProductResourceTaxRateDetails {
pub country: Option<String>,
pub flat_amount: Option<TaxRateFlatAmount>,
pub percentage_decimal: String,
pub rate_type: Option<TaxProductResourceTaxRateDetailsRateType>,
pub state: Option<String>,
pub tax_type: Option<TaxProductResourceTaxRateDetailsTaxType>,
}Fields§
§country: Option<String>Two-letter country code (ISO 3166-1 alpha-2).
flat_amount: Option<TaxRateFlatAmount>The amount of the tax rate when the rate_type is flat_amount.
Tax rates with rate_type percentage can vary based on the transaction, resulting in this field being null.
This field exposes the amount and currency of the flat tax rate.
percentage_decimal: StringThe tax rate percentage as a string. For example, 8.5% is represented as "8.5".
rate_type: Option<TaxProductResourceTaxRateDetailsRateType>Indicates the type of tax rate applied to the taxable amount.
This value can be null when no tax applies to the location.
This field is only present for TaxRates created by Stripe Tax.
state: Option<String>State, county, province, or region.
tax_type: Option<TaxProductResourceTaxRateDetailsTaxType>The tax type, such as vat or sales_tax.
Trait Implementations§
Source§impl Clone for TaxProductResourceTaxRateDetails
impl Clone for TaxProductResourceTaxRateDetails
Source§fn clone(&self) -> TaxProductResourceTaxRateDetails
fn clone(&self) -> TaxProductResourceTaxRateDetails
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 TaxProductResourceTaxRateDetails
impl FromValueOpt for TaxProductResourceTaxRateDetails
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for TaxProductResourceTaxRateDetails
impl RefUnwindSafe for TaxProductResourceTaxRateDetails
impl Send for TaxProductResourceTaxRateDetails
impl Sync for TaxProductResourceTaxRateDetails
impl Unpin for TaxProductResourceTaxRateDetails
impl UnwindSafe for TaxProductResourceTaxRateDetails
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