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