Enum square_api_client::models::enums::TaxInclusionType
source · [−]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
sourceimpl Clone for TaxInclusionType
impl Clone for TaxInclusionType
sourcefn clone(&self) -> TaxInclusionType
fn clone(&self) -> TaxInclusionType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TaxInclusionType
impl Debug for TaxInclusionType
sourceimpl<'de> Deserialize<'de> for TaxInclusionType
impl<'de> Deserialize<'de> for TaxInclusionType
sourcefn 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
sourceimpl PartialEq<TaxInclusionType> for TaxInclusionType
impl PartialEq<TaxInclusionType> for TaxInclusionType
sourcefn eq(&self, other: &TaxInclusionType) -> bool
fn eq(&self, other: &TaxInclusionType) -> bool
sourceimpl Serialize for TaxInclusionType
impl Serialize for TaxInclusionType
impl Eq for TaxInclusionType
impl StructuralEq for TaxInclusionType
impl StructuralPartialEq for TaxInclusionType
Auto Trait Implementations
impl RefUnwindSafe for TaxInclusionType
impl Send for TaxInclusionType
impl Sync for TaxInclusionType
impl Unpin for TaxInclusionType
impl UnwindSafe for TaxInclusionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.