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 IntoCaveatDeferred for Price
impl IntoCaveatDeferred for Price
Source§fn into_caveat_deferred<K: Kind>(
self,
warnings: SetDeferred<K>,
) -> CaveatDeferred<Self, K>
fn into_caveat_deferred<K: Kind>( self, warnings: SetDeferred<K>, ) -> CaveatDeferred<Self, K>
Any type can be converted to
CaveatDeferred<T> by supplying a list of warning Kinds.Source§impl PartialOrd for Price
impl PartialOrd for Price
Source§impl RoundDecimal for Price
impl RoundDecimal for Price
Source§fn round_to_ocpi_scale(self) -> Self
fn round_to_ocpi_scale(self) -> Self
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§
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