#[non_exhaustive]pub struct Posting<'ctx> {
pub account: Account<'ctx>,
pub amount: Amount<'ctx>,
pub converted_amount: Option<SingleAmount<'ctx>>,
}
Expand description
Evaluated posting of the transaction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.account: Account<'ctx>
Account of the posting.
amount: Amount<'ctx>
Amount of the posting described in the Ledger.
converted_amount: Option<SingleAmount<'ctx>>
Amount of the posting in cost basis. Some time this is useful for a few use cases:
- To balance within the transaction, we prefer this amount.
Trait Implementations§
impl<'ctx> Eq for Posting<'ctx>
impl<'ctx> StructuralPartialEq for Posting<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for Posting<'ctx>
impl<'ctx> RefUnwindSafe for Posting<'ctx>
impl<'ctx> Send for Posting<'ctx>
impl<'ctx> Sync for Posting<'ctx>
impl<'ctx> Unpin for Posting<'ctx>
impl<'ctx> UnwindSafe for Posting<'ctx>
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