pub struct CashDiscountUpdate {
pub account_id: i64,
pub note: String,
pub rate: i64,
pub extra: Map<String, Value>,
}Expand description
Replacement values for this cash discount.
Fields§
§account_id: i64ID of the existing ledger account receiving this amount. It also determines the accounting period.
note: StringTrimmed description. Supply a nonblank value because the stored model requires a string.
rate: i64Whole percentage points: 2 means 2%. This endpoint currently accepts only integers and does not validate a percentage range.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for CashDiscountUpdate
impl Clone for CashDiscountUpdate
Source§impl Debug for CashDiscountUpdate
impl Debug for CashDiscountUpdate
Source§impl Default for CashDiscountUpdate
impl Default for CashDiscountUpdate
Source§impl<'de> Deserialize<'de> for CashDiscountUpdate
impl<'de> Deserialize<'de> for CashDiscountUpdate
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 CashDiscountUpdate
impl PartialEq for CashDiscountUpdate
Source§impl Serialize for CashDiscountUpdate
impl Serialize for CashDiscountUpdate
impl StructuralPartialEq for CashDiscountUpdate
Auto Trait Implementations§
impl Freeze for CashDiscountUpdate
impl RefUnwindSafe for CashDiscountUpdate
impl Send for CashDiscountUpdate
impl Sync for CashDiscountUpdate
impl Unpin for CashDiscountUpdate
impl UnsafeUnpin for CashDiscountUpdate
impl UnwindSafe for CashDiscountUpdate
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