pub struct TaxRateCreate {
pub account_id: i64,
pub note: Option<Option<String>>,
pub rate: 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.
note: Option<Option<String>>Description, trimmed before storage. Omitted, null or blank clears it.
None leaves the field out, Some(None) sends null.
rate: f64Percentage points: 7 means 7%, not 0.07. The API validates a number but does not enforce a percentage range.
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 Clone for TaxRateCreate
impl Clone for TaxRateCreate
Source§impl Debug for TaxRateCreate
impl Debug for TaxRateCreate
Source§impl Default for TaxRateCreate
impl Default for TaxRateCreate
Source§impl<'de> Deserialize<'de> for TaxRateCreate
impl<'de> Deserialize<'de> for TaxRateCreate
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
Source§impl PartialEq for TaxRateCreate
impl PartialEq for TaxRateCreate
Source§impl Serialize for TaxRateCreate
impl Serialize for TaxRateCreate
impl StructuralPartialEq for TaxRateCreate
Auto Trait Implementations§
impl Freeze for TaxRateCreate
impl RefUnwindSafe for TaxRateCreate
impl Send for TaxRateCreate
impl Sync for TaxRateCreate
impl Unpin for TaxRateCreate
impl UnsafeUnpin for TaxRateCreate
impl UnwindSafe for TaxRateCreate
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