Struct finql_data::transaction::Transaction[][src]

pub struct Transaction {
    pub id: Option<usize>,
    pub transaction_type: TransactionType,
    pub cash_flow: CashFlow,
    pub note: Option<String>,
}

Basic transaction data

Fields

id: Option<usize>transaction_type: TransactionTypecash_flow: CashFlownote: Option<String>

Implementations

impl Transaction[src]

pub fn set_asset_id(&mut self, asset_id: usize)[src]

Assign or change transaction’s asset_id, if possible This is often required for transactions on new assets

pub fn set_transaction_ref(&mut self, trans_ref: usize)[src]

Assign new transaction reference, if applicable

Trait Implementations

impl Clone for Transaction[src]

impl DataItem for Transaction[src]

impl Debug for Transaction[src]

impl<'de> Deserialize<'de> for Transaction[src]

impl Serialize for Transaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.