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: Money
The 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<'de> Deserialize<'de> for Price
impl<'de> Deserialize<'de> for Price
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
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§
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