pub struct TaxRate {
pub custom_data: Option<CustomData>,
pub stack: Option<i64>,
pub tax: f64,
pub type: String<20usize>,
}Expand description
Tax percentage
Fields§
§custom_data: Option<CustomData>§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.
tax: f64Tax percentage
type: String<20usize>Type of this tax, e.g. “Federal “, “State”, for information on receipt.
Trait Implementations§
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