pub struct Posting<'i, Deco: Decoration> {
pub account: Deco::Decorated<Cow<'i, str>>,
pub clear_state: ClearState,
pub amount: Option<PostingAmount<'i, Deco>>,
pub balance: Option<Deco::Decorated<ValueExpr<'i>>>,
pub metadata: Vec<Metadata<'i>>,
}
Expand description
Posting in a transaction to represent a particular account amount increase / decrease.
Fields§
§account: Deco::Decorated<Cow<'i, str>>
Account of the post target.
clear_state: ClearState
Posting specific ClearState.
amount: Option<PostingAmount<'i, Deco>>
Amount of the posting.
balance: Option<Deco::Decorated<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, Deco: Decoration> AsUndecorated<Posting<'i, Deco>> for Posting<'i, Deco>
impl<'i, Deco: Decoration> AsUndecorated<Posting<'i, Deco>> for Posting<'i, Deco>
fn as_undecorated(&self) -> &Posting<'i, Deco>
Source§impl<'i, Deco: Decoration> Debug for Posting<'i, Deco>
impl<'i, Deco: Decoration> Debug for Posting<'i, Deco>
Source§impl<'i, Deco: Decoration> PartialEq for Posting<'i, Deco>
impl<'i, Deco: Decoration> PartialEq for Posting<'i, Deco>
impl<'i, Deco: Decoration> Eq for Posting<'i, Deco>
Auto Trait Implementations§
impl<'i, Deco> Freeze for Posting<'i, Deco>where
<Deco as Decoration>::Decorated<Cow<'i, str>>: Freeze,
<Deco as Decoration>::Decorated<ValueExpr<'i>>: Freeze,
<Deco as Decoration>::Decorated<Exchange<'i>>: Freeze,
impl<'i, Deco> RefUnwindSafe for Posting<'i, Deco>where
<Deco as Decoration>::Decorated<Cow<'i, str>>: RefUnwindSafe,
<Deco as Decoration>::Decorated<ValueExpr<'i>>: RefUnwindSafe,
<Deco as Decoration>::Decorated<Exchange<'i>>: RefUnwindSafe,
impl<'i, Deco> Send for Posting<'i, Deco>where
<Deco as Decoration>::Decorated<Cow<'i, str>>: Send,
<Deco as Decoration>::Decorated<ValueExpr<'i>>: Send,
<Deco as Decoration>::Decorated<Exchange<'i>>: Send,
impl<'i, Deco> Sync for Posting<'i, Deco>where
<Deco as Decoration>::Decorated<Cow<'i, str>>: Sync,
<Deco as Decoration>::Decorated<ValueExpr<'i>>: Sync,
<Deco as Decoration>::Decorated<Exchange<'i>>: Sync,
impl<'i, Deco> Unpin for Posting<'i, Deco>where
<Deco as Decoration>::Decorated<Cow<'i, str>>: Unpin,
<Deco as Decoration>::Decorated<ValueExpr<'i>>: Unpin,
<Deco as Decoration>::Decorated<Exchange<'i>>: Unpin,
impl<'i, Deco> UnwindSafe for Posting<'i, Deco>where
<Deco as Decoration>::Decorated<Cow<'i, str>>: UnwindSafe,
<Deco as Decoration>::Decorated<ValueExpr<'i>>: UnwindSafe,
<Deco as Decoration>::Decorated<Exchange<'i>>: UnwindSafe,
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