#[non_exhaustive]pub enum TaxRateRateType {
FlatAmount,
Percentage,
Unknown(String),
}Expand description
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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FlatAmount
Percentage
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for TaxRateRateType
impl Clone for TaxRateRateType
Source§fn clone(&self) -> TaxRateRateType
fn clone(&self) -> TaxRateRateType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaxRateRateType
Available on non-crate feature redact-generated-debug only.
impl Debug for TaxRateRateType
Available on non-crate feature
redact-generated-debug only.Source§impl Deserialize for TaxRateRateType
impl Deserialize for TaxRateRateType
Source§impl Display for TaxRateRateType
impl Display for TaxRateRateType
Source§impl FromStr for TaxRateRateType
impl FromStr for TaxRateRateType
Source§impl FromValueOpt for TaxRateRateType
impl FromValueOpt for TaxRateRateType
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for TaxRateRateType
impl PartialEq for TaxRateRateType
Source§fn eq(&self, other: &TaxRateRateType) -> bool
fn eq(&self, other: &TaxRateRateType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TaxRateRateType
impl StructuralPartialEq for TaxRateRateType
Auto Trait Implementations§
impl Freeze for TaxRateRateType
impl RefUnwindSafe for TaxRateRateType
impl Send for TaxRateRateType
impl Sync for TaxRateRateType
impl Unpin for TaxRateRateType
impl UnsafeUnpin for TaxRateRateType
impl UnwindSafe for TaxRateRateType
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