Struct okane_core::repl::Posting
source · pub struct Posting {
pub account: String,
pub clear_state: ClearState,
pub amount: Option<PostingAmount>,
pub balance: Option<ValueExpr>,
pub metadata: Vec<Metadata>,
}Expand description
Posting in a transaction to represent a particular account amount increase / decrease.
Fields§
§account: StringAccount of the post target.
clear_state: ClearStatePosting specific ClearState.
amount: Option<PostingAmount>Amount of the posting.
balance: Option<ValueExpr>Balance after the transaction of the specified account.
metadata: Vec<Metadata>Metadata information such as comment or tag.
Implementations§
Trait Implementations§
source§impl PartialEq for Posting
impl PartialEq for Posting
impl Eq for Posting
impl StructuralEq for Posting
impl StructuralPartialEq for Posting
Auto Trait Implementations§
impl RefUnwindSafe for Posting
impl Send for Posting
impl Sync for Posting
impl Unpin 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