pub struct TaxAmount {
pub meta: Bo4eMeta,
pub tax_type: Option<TaxType>,
pub tax_rate: Option<f64>,
pub basis_value: Option<f64>,
pub tax_value: Option<f64>,
pub currency: Option<Currency>,
}Expand description
A calculated tax amount.
German: Steuerbetrag
§Example
use bo4e_core::com::TaxAmount;
use bo4e_core::enums::{Currency, TaxType};
let tax = TaxAmount {
tax_type: Some(TaxType::ValueAddedTax),
tax_rate: Some(19.0),
basis_value: Some(100.0),
tax_value: Some(19.0),
currency: Some(Currency::Eur),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
tax_type: Option<TaxType>Type of tax (Steuerart)
tax_rate: Option<f64>Tax rate as percentage (Steuersatz)
basis_value: Option<f64>Net amount on which tax was calculated (Basiswert)
tax_value: Option<f64>Calculated tax amount (Steuerwert)
currency: Option<Currency>Currency (Waehrungscode)
Implementations§
Trait Implementations§
Source§impl Bo4eObject for TaxAmount
impl Bo4eObject for TaxAmount
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl<'de> Deserialize<'de> for TaxAmount
impl<'de> Deserialize<'de> for TaxAmount
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 StructuralPartialEq for TaxAmount
Auto Trait Implementations§
impl Freeze for TaxAmount
impl RefUnwindSafe for TaxAmount
impl Send for TaxAmount
impl Sync for TaxAmount
impl Unpin for TaxAmount
impl UnsafeUnpin for TaxAmount
impl UnwindSafe for TaxAmount
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