pub enum VatApplicable {
Unknown,
Inapplicable,
Applicable(Vat),
}Expand description
A VAT percentage with embedded information about whether it’s applicable, inapplicable or unknown.
Variants§
Unknown
The VAT percentage is not known.
All incl_vat fields should be None in the final calculation.
Inapplicable
The VAT is known but not applicable.
The total incl_vat should be equal to excl_vat.
Applicable(Vat)
The VAT us known and applicable.
Trait Implementations§
Source§impl Clone for VatApplicable
impl Clone for VatApplicable
Source§fn clone(&self) -> VatApplicable
fn clone(&self) -> VatApplicable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VatApplicable
impl Debug for VatApplicable
impl Copy for VatApplicable
Auto Trait Implementations§
impl Freeze for VatApplicable
impl RefUnwindSafe for VatApplicable
impl Send for VatApplicable
impl Sync for VatApplicable
impl Unpin for VatApplicable
impl UnwindSafe for VatApplicable
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