pub enum TaxInclusionType {
Additive,
Inclusive,
}
Expand description
Whether to the tax amount should be additional to or included in the CatalogItem price.
Variants§
Additive
The tax is an additive tax. The tax amount is added on top of the CatalogItemVariation price. For example, a $1.00 item with a 10% additive tax would have a total cost to the buyer of $1.10.
Inclusive
The tax is an inclusive tax. The tax amount is included in the CatalogItemVariation price. For example, a $1.00 item with a 10% inclusive tax would have a total cost to the buyer of $1.00, with $0.91 (91 cents) of that total being the cost of the item and $0.09 (9 cents) being tax.
Trait Implementations§
Source§impl Clone for TaxInclusionType
impl Clone for TaxInclusionType
Source§fn clone(&self) -> TaxInclusionType
fn clone(&self) -> TaxInclusionType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaxInclusionType
impl Debug for TaxInclusionType
Source§impl<'de> Deserialize<'de> for TaxInclusionType
impl<'de> Deserialize<'de> for TaxInclusionType
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 TaxInclusionType
impl PartialEq for TaxInclusionType
Source§impl Serialize for TaxInclusionType
impl Serialize for TaxInclusionType
impl Eq for TaxInclusionType
impl StructuralPartialEq for TaxInclusionType
Auto Trait Implementations§
impl Freeze for TaxInclusionType
impl RefUnwindSafe for TaxInclusionType
impl Send for TaxInclusionType
impl Sync for TaxInclusionType
impl Unpin for TaxInclusionType
impl UnwindSafe for TaxInclusionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.