pub struct TaxRule {
pub tax: TaxCode,
pub base: Option<String>,
pub output: Option<String>,
pub input: Option<String>,
}Expand description
Which fields of a report a tax code fills.
Fields§
§tax: TaxCodeThe tax code.
base: Option<String>The field for the net amounts: postings with the code on accounts that hold no VAT.
output: Option<String>The field for VAT owed: postings with the code on output VAT accounts.
input: Option<String>The field for deductible VAT: postings with the code on input VAT accounts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaxRule
impl<'de> Deserialize<'de> for TaxRule
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 Eq for TaxRule
impl StructuralPartialEq for TaxRule
Auto Trait Implementations§
impl Freeze for TaxRule
impl RefUnwindSafe for TaxRule
impl Send for TaxRule
impl Sync for TaxRule
impl Unpin for TaxRule
impl UnsafeUnpin for TaxRule
impl UnwindSafe for TaxRule
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