Struct beancount_parser::transaction::Posting
source · pub struct Posting<'a> { /* private fields */ }Expand description
A posting
It is the association of an Account and an Amount.
(though the amount is optional)
A posting may also have, price and cost defined after the amount.
Examples of postings
Assets:A:B 10 CHF(most common form)! Assets:A:B 10 CHF(with pending flag)Assets:A:B 10 CHF @ 1 EUR(with price)Assets:A:B 10 CHF {2 USD}(with cost)Assets:A:B(without amount)
Implementations
Trait Implementations
sourceimpl<'a> PartialEq<Posting<'a>> for Posting<'a>
impl<'a> PartialEq<Posting<'a>> for Posting<'a>
impl<'a> StructuralPartialEq for Posting<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Posting<'a>
impl<'a> Send for Posting<'a>
impl<'a> Sync for Posting<'a>
impl<'a> Unpin for Posting<'a>
impl<'a> UnwindSafe for Posting<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more