pub struct TaxRateUpdate {
pub account_id: i64,
pub note: Option<Option<String>>,
pub rate: f64,
pub tax_type_id: i64,
pub extra: Map<String, Value>,
}Expand description
Replacement values for this tax rate. If transactions already reference it, only note may change; send the existing rate, taxTypeId and accountId unchanged.
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 TaxRateUpdate
impl Clone for TaxRateUpdate
Source§impl Debug for TaxRateUpdate
impl Debug for TaxRateUpdate
Source§impl Default for TaxRateUpdate
impl Default for TaxRateUpdate
Source§impl<'de> Deserialize<'de> for TaxRateUpdate
impl<'de> Deserialize<'de> for TaxRateUpdate
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 TaxRateUpdate
impl PartialEq for TaxRateUpdate
Source§impl Serialize for TaxRateUpdate
impl Serialize for TaxRateUpdate
impl StructuralPartialEq for TaxRateUpdate
Auto Trait Implementations§
impl Freeze for TaxRateUpdate
impl RefUnwindSafe for TaxRateUpdate
impl Send for TaxRateUpdate
impl Sync for TaxRateUpdate
impl Unpin for TaxRateUpdate
impl UnsafeUnpin for TaxRateUpdate
impl UnwindSafe for TaxRateUpdate
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