pub struct Transaction {Show 23 fields
pub id: String,
pub account_name: String,
pub date: NaiveDate,
pub amount: i64,
pub memo: Option<String>,
pub cleared: ClearedStatus,
pub approved: bool,
pub flag_color: Option<FlagColor>,
pub flag_name: Option<String>,
pub account_id: Uuid,
pub payee_id: Option<Uuid>,
pub payee_name: Option<String>,
pub category_id: Option<Uuid>,
pub category_name: Option<String>,
pub matched_transaction_id: Option<String>,
pub import_id: Option<String>,
pub import_payee_name: Option<String>,
pub import_payee_name_original: Option<String>,
pub transfer_account_id: Option<Uuid>,
pub transfer_transaction_id: Option<String>,
pub debt_transaction_type: Option<DebtTransactionType>,
pub deleted: bool,
pub subtransactions: Vec<Subtransaction>,
}Expand description
A transaction returned by dedicated transaction endpoints (get_transactions,
get_transaction, etc.). Includes named fields (account_name, payee_name,
category_name) and subtransactions not present in the plan export. For the plan export
variant, see TransactionSummary. Amounts are in milliunits (divide by 1000 for display).
id is a String rather than Uuid because upcoming scheduled transaction instances use a
compound format {scheduled_uuid}_{date} (e.g. "abc123..._2025-06-01"). Regular posted
transactions have standard UUID ids.
Fields§
§id: String§account_name: String§date: NaiveDate§amount: i64§memo: Option<String>§cleared: ClearedStatus§approved: bool§flag_color: Option<FlagColor>§flag_name: Option<String>§account_id: Uuid§payee_id: Option<Uuid>§payee_name: Option<String>§category_id: Option<Uuid>§category_name: Option<String>§matched_transaction_id: Option<String>§import_id: Option<String>§import_payee_name: Option<String>§import_payee_name_original: Option<String>§transfer_account_id: Option<Uuid>§transfer_transaction_id: Option<String>§debt_transaction_type: Option<DebtTransactionType>§deleted: bool§subtransactions: Vec<Subtransaction>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 (const: unstable) · 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<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
Source§impl Serialize for Transaction
impl Serialize 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 UnsafeUnpin 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