pub struct Transaction<'i, Deco: Decoration> {
pub date: NaiveDate,
pub effective_date: Option<NaiveDate>,
pub clear_state: ClearState,
pub code: Option<Cow<'i, str>>,
pub payee: Cow<'i, str>,
pub posts: Vec<Deco::Decorated<Posting<'i, Deco>>>,
pub metadata: Vec<Metadata<'i>>,
}
Expand description
Represents a transaction where the money transfered across the accounts.
Fields§
§date: NaiveDate
Date when the transaction issued.
effective_date: Option<NaiveDate>
Date when the transaction got effective, optional.
clear_state: ClearState
Indiacates clearing state of the entire transaction.
code: Option<Cow<'i, str>>
Transaction code (not necessarily unique).
payee: Cow<'i, str>
Label of the transaction, often the opposite party of the transaction.
posts: Vec<Deco::Decorated<Posting<'i, Deco>>>
Postings of the transaction, could be empty.
metadata: Vec<Metadata<'i>>
Transaction level metadata.
Implementations§
Source§impl<'i, Deco: Decoration> Transaction<'i, Deco>
impl<'i, Deco: Decoration> Transaction<'i, Deco>
Trait Implementations§
Source§impl<'i, Deco: Decoration> AsUndecorated<Transaction<'i, Deco>> for Transaction<'i, Deco>
impl<'i, Deco: Decoration> AsUndecorated<Transaction<'i, Deco>> for Transaction<'i, Deco>
fn as_undecorated(&self) -> &Transaction<'i, Deco>
Source§impl<'i, Deco: Decoration> Debug for Transaction<'i, Deco>
impl<'i, Deco: Decoration> Debug for Transaction<'i, Deco>
Source§impl<'i, Deco: Decoration> PartialEq for Transaction<'i, Deco>
impl<'i, Deco: Decoration> PartialEq for Transaction<'i, Deco>
impl<'i, Deco: Decoration> Eq for Transaction<'i, Deco>
Auto Trait Implementations§
impl<'i, Deco> Freeze for Transaction<'i, Deco>
impl<'i, Deco> RefUnwindSafe for Transaction<'i, Deco>
impl<'i, Deco> Send for Transaction<'i, Deco>
impl<'i, Deco> Sync for Transaction<'i, Deco>
impl<'i, Deco> Unpin for Transaction<'i, Deco>
impl<'i, Deco> UnwindSafe for Transaction<'i, Deco>
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