pub struct Transaction {
pub comment: Option<String>,
pub date: NaiveDate,
pub effective_date: NaiveDate,
pub status: Option<TransactionStatus>,
pub code: Option<String>,
pub description: String,
pub postings: Vec<Posting>,
}
Fields§
§comment: Option<String>
§date: NaiveDate
§effective_date: NaiveDate
§status: Option<TransactionStatus>
§code: Option<String>
§description: String
§postings: Vec<Posting>
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Transaction
impl Debug for Transaction
Source§impl Display for Transaction
impl Display for Transaction
Source§impl<'a> From<&'a Transaction> for Balance
impl<'a> From<&'a Transaction> for Balance
Source§fn from(transaction: &'a Transaction) -> Self
fn from(transaction: &'a Transaction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
Source§impl Serializer for Transaction
impl Serializer for Transaction
fn write<W>(
&self,
writer: &mut W,
settings: &SerializerSettings,
) -> Result<(), Error>where
W: Write,
fn to_string_pretty(&self, settings: &SerializerSettings) -> String
Source§impl TryFrom<Transaction> for Transaction
impl TryFrom<Transaction> for Transaction
impl Eq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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