[−][src]Struct ynab_api::models::transaction_summary::TransactionSummary
Fields
id: String
date: String
The transaction date in ISO format (e.g. 2016-12-01)
amount: i64
The transaction amount in milliunits format
memo: Option<String>
cleared: Cleared
The cleared status of the transaction
approved: bool
Whether or not the transaction is approved
flag_color: Option<FlagColor>
The transaction flag
account_id: String
payee_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: bool
Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
Methods
impl TransactionSummary
[src]
pub fn new(
id: String,
date: String,
amount: i64,
cleared: Cleared,
approved: bool,
account_id: String,
deleted: bool
) -> TransactionSummary
[src]
id: String,
date: String,
amount: i64,
cleared: Cleared,
approved: bool,
account_id: String,
deleted: bool
) -> TransactionSummary
Trait Implementations
impl PartialEq<TransactionSummary> for TransactionSummary
[src]
fn eq(&self, other: &TransactionSummary) -> bool
[src]
fn ne(&self, other: &TransactionSummary) -> bool
[src]
impl Debug for TransactionSummary
[src]
impl StructuralPartialEq for TransactionSummary
[src]
impl Serialize for TransactionSummary
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for TransactionSummary
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for TransactionSummary
impl Sync for TransactionSummary
impl Unpin for TransactionSummary
impl UnwindSafe for TransactionSummary
impl RefUnwindSafe for TransactionSummary
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,