pub struct Price {
pub custom_data: Option<CustomData>,
pub excl_tax: Option<f64>,
pub incl_tax: Option<f64>,
pub tax_rates: Option<Vec<TaxRate, 5usize>>,
}Expand description
Price with and without tax. At least one of exclTax, inclTax must be present.
Fields§
§custom_data: Option<CustomData>§excl_tax: Option<f64>Price/cost excluding tax. Can be absent if inclTax is present.
incl_tax: Option<f64>Price/cost including tax. Can be absent if exclTax is present.
tax_rates: Option<Vec<TaxRate, 5usize>>Trait Implementations§
impl StructuralPartialEq for Price
Auto Trait Implementations§
impl Freeze for Price
impl RefUnwindSafe for Price
impl Send for Price
impl Sync for Price
impl Unpin for Price
impl UnsafeUnpin for Price
impl UnwindSafe for Price
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