pub struct TaxRate {
pub type: String,
pub tax: f64,
pub stack: Option<i64>,
pub custom_data: Option<CustomData>,
}Expand description
Tax percentage
Fields§
§type: StringType of this tax, e.g. “Federal “, “State”, for information on receipt.
tax: f64Tax percentage
stack: Option<i64>Stack level for this type of tax. Default value, when absent, is 0. + stack = 0: tax on net price; + stack = 1: tax added on top of stack 0; + stack = 2: tax added on top of stack 1, etc.
custom_data: Option<CustomData>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaxRate
impl<'de> Deserialize<'de> for TaxRate
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
impl StructuralPartialEq for TaxRate
Auto Trait Implementations§
impl Freeze for TaxRate
impl RefUnwindSafe for TaxRate
impl Send for TaxRate
impl Sync for TaxRate
impl Unpin for TaxRate
impl UnsafeUnpin for TaxRate
impl UnwindSafe for TaxRate
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