pub struct Price {
pub excl_vat: Money,
pub incl_vat: Option<Money>,
}Expand description
A price consisting of a value including VAT, and a value excluding VAT.
Fields§
§excl_vat: MoneyThe price excluding VAT.
incl_vat: Option<Money>The price including VAT.
If no vat is applicable this value will be equal to the excl_vat.
If no vat could be determined this value will be None.
The v211 tariffs can’t determine VAT.
Implementations§
Trait Implementations§
Source§impl IntoCaveat for Price
impl IntoCaveat for Price
Source§impl PartialOrd for Price
impl PartialOrd for Price
impl Copy for Price
impl Eq for Price
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 UnwindSafe for Price
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)