pub struct Posting {
pub owner: PartyId,
pub account: AccountId,
pub amount: Money,
pub note: Option<String>,
pub tax: Option<TaxCode>,
}Expand description
One line of a booking: an amount on an account. Positive is debit, negative is credit.
Fields§
§owner: PartyIdThe organisation or person whose books the posting is in (spec part 0008).
account: AccountIdThe account.
amount: MoneyThe amount; positive is debit, negative is credit.
note: Option<String>A remark on the posting – for example why there is no document for it; left out when there is none.
tax: Option<TaxCode>How the posting is treated for VAT, as a tax code of its country (de-out-19); left out when it is not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Posting
impl<'de> Deserialize<'de> for Posting
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 Posting
impl StructuralPartialEq for Posting
Auto Trait Implementations§
impl Freeze for Posting
impl RefUnwindSafe for Posting
impl Send for Posting
impl Sync for Posting
impl Unpin for Posting
impl UnsafeUnpin for Posting
impl UnwindSafe for Posting
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