Struct okane_core::repl::Transaction
source · pub struct Transaction<'i> {
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<Posting<'i>>,
pub metadata: Vec<Metadata<'i>>,
}Expand description
Represents a transaction where the money transfered across the accounts.
Fields§
§date: NaiveDateDate when the transaction issued.
effective_date: Option<NaiveDate>Date when the transaction got effective, optional.
clear_state: ClearStateIndiacates 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<Posting<'i>>Postings of the transaction, could be empty.
metadata: Vec<Metadata<'i>>Transaction level metadata.
Implementations§
Trait Implementations§
source§impl<'i> Debug for Transaction<'i>
impl<'i> Debug for Transaction<'i>
source§impl<'i> From<&'i Transaction> for Transaction<'i>
impl<'i> From<&'i Transaction> for Transaction<'i>
source§fn from(orig: &'i Transaction) -> Self
fn from(orig: &'i Transaction) -> Self
Converts to this type from the input type.
source§impl<'i> IntoBoundedStatic for Transaction<'i>
impl<'i> IntoBoundedStatic for Transaction<'i>
§type Static = Transaction<'static>
type Static = Transaction<'static>
The target type is bounded by the
'static lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.source§impl<'i> PartialEq for Transaction<'i>
impl<'i> PartialEq for Transaction<'i>
source§fn eq(&self, other: &Transaction<'i>) -> bool
fn eq(&self, other: &Transaction<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'i> ToBoundedStatic for Transaction<'i>
impl<'i> ToBoundedStatic for Transaction<'i>
impl<'i> Eq for Transaction<'i>
impl<'i> StructuralPartialEq for Transaction<'i>
Auto Trait Implementations§
impl<'i> Freeze for Transaction<'i>
impl<'i> RefUnwindSafe for Transaction<'i>
impl<'i> Send for Transaction<'i>
impl<'i> Sync for Transaction<'i>
impl<'i> Unpin for Transaction<'i>
impl<'i> UnwindSafe for Transaction<'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