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 know nadn 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§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
Source§impl<'de> Deserialize<'de> for VatApplicable
impl<'de> Deserialize<'de> for VatApplicable
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
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§
§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)