pub struct TaxRate {
pub account_id: i64,
pub id: i64,
pub meta: MetaDataEntityId,
pub note: Option<String>,
pub rate: Option<f64>,
pub tax_type_id: i64,
pub extra: Map<String, Value>,
}Expand description
A tax rate combines a tax type, a percentage and the ledger account receiving the tax amount. Its accounting period is determined by that account.
Fields§
§account_id: i64ID of the existing ledger account receiving this amount. It also determines the accounting period.
id: i64§meta: MetaDataEntityId§note: Option<String>Description, trimmed before storage. Omitted, null or blank clears it.
rate: Option<f64>Percentage points: 7 means 7%. Legacy or internally created records can contain null.
tax_type_id: i64Existing tax type from /finance/taxtypes.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaxRate
impl<'de> Deserialize<'de> for TaxRate
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 TaxRate
Auto Trait Implementations§
impl Freeze for TaxRate
impl RefUnwindSafe for TaxRate
impl Send for TaxRate
impl Sync for TaxRate
impl Unpin for TaxRate
impl UnsafeUnpin for TaxRate
impl UnwindSafe for TaxRate
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