[−][src]Struct ynab_api::models::TransactionDetail
Fields
id: Stringdate: StringThe transaction date in ISO format (e.g. 2016-12-01)
amount: i64The transaction amount in milliunits format
memo: Option<String>cleared: StringThe cleared status of the transaction
approved: boolWhether or not the transaction is approved
flag_color: Option<String>The transaction flag
account_id: Stringpayee_id: Option<String>category_id: Option<String>transfer_account_id: Option<String>If a transfer transaction, the account to which it transfers
transfer_transaction_id: Option<String>If a transfer transaction, the id of transaction on the other side of the transfer
matched_transaction_id: Option<String>If transaction is matched, the id of the matched transaction
import_id: Option<String>If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
deleted: boolWhether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
account_name: Stringpayee_name: Option<String>category_name: Option<String>subtransactions: Vec<SubTransaction>If a split transaction, the subtransactions.
Methods
impl TransactionDetail[src]
pub fn new(
id: String,
date: String,
amount: i64,
cleared: String,
approved: bool,
account_id: String,
deleted: bool,
account_name: String,
subtransactions: Vec<SubTransaction>
) -> TransactionDetail[src]
id: String,
date: String,
amount: i64,
cleared: String,
approved: bool,
account_id: String,
deleted: bool,
account_name: String,
subtransactions: Vec<SubTransaction>
) -> TransactionDetail
Trait Implementations
impl PartialEq<TransactionDetail> for TransactionDetail[src]
fn eq(&self, other: &TransactionDetail) -> bool[src]
fn ne(&self, other: &TransactionDetail) -> bool[src]
impl Debug for TransactionDetail[src]
impl Serialize for TransactionDetail[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for TransactionDetail[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for TransactionDetail
impl Unpin for TransactionDetail
impl Sync for TransactionDetail
impl UnwindSafe for TransactionDetail
impl RefUnwindSafe for TransactionDetail
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,