pub enum TaxCalculationType {
Origin,
Destination,
ReverseCharge,
ZeroRated,
Exempt,
None,
ThresholdBased,
}Expand description
Specifies how tax should be calculated for a given transaction.
Variants§
Origin
Use origin tax rate; below threshold
Destination
Use destination tax rate; above threshold
ReverseCharge
Buyer pays tax in their country
ZeroRated
Tax applies but at zero rate
Exempt
No tax applies
None
Tax status unknown
ThresholdBased
Calculation depends on threshold
Trait Implementations§
Source§impl Clone for TaxCalculationType
impl Clone for TaxCalculationType
Source§fn clone(&self) -> TaxCalculationType
fn clone(&self) -> TaxCalculationType
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 TaxCalculationType
impl Debug for TaxCalculationType
Source§impl<'de> Deserialize<'de> for TaxCalculationType
impl<'de> Deserialize<'de> for TaxCalculationType
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
Source§impl PartialEq for TaxCalculationType
impl PartialEq for TaxCalculationType
Source§fn eq(&self, other: &TaxCalculationType) -> bool
fn eq(&self, other: &TaxCalculationType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaxCalculationType
impl Serialize for TaxCalculationType
impl StructuralPartialEq for TaxCalculationType
Auto Trait Implementations§
impl Freeze for TaxCalculationType
impl RefUnwindSafe for TaxCalculationType
impl Send for TaxCalculationType
impl Sync for TaxCalculationType
impl Unpin for TaxCalculationType
impl UnsafeUnpin for TaxCalculationType
impl UnwindSafe for TaxCalculationType
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