pub struct SubTransaction {
pub id: String,
pub transaction_id: String,
pub amount: i64,
pub memo: Option<Option<String>>,
pub payee_id: Option<Option<Uuid>>,
pub payee_name: Option<Option<String>>,
pub category_id: Option<Option<Uuid>>,
pub category_name: Option<Option<String>>,
pub transfer_account_id: Option<Option<Uuid>>,
pub transfer_transaction_id: Option<Option<String>>,
pub deleted: bool,
}
Fields§
§id: String
§transaction_id: String
§amount: i64
The subtransaction amount in milliunits format
memo: Option<Option<String>>
§payee_id: Option<Option<Uuid>>
§payee_name: Option<Option<String>>
§category_id: Option<Option<Uuid>>
§category_name: Option<Option<String>>
§transfer_account_id: Option<Option<Uuid>>
If a transfer, the account_id which the subtransaction transfers to
transfer_transaction_id: Option<Option<String>>
If a transfer, the id of transaction on the other side of the transfer
deleted: bool
Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.
Implementations§
Trait Implementations§
Source§impl Clone for SubTransaction
impl Clone for SubTransaction
Source§fn clone(&self) -> SubTransaction
fn clone(&self) -> SubTransaction
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 SubTransaction
impl Debug for SubTransaction
Source§impl Default for SubTransaction
impl Default for SubTransaction
Source§fn default() -> SubTransaction
fn default() -> SubTransaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubTransaction
impl<'de> Deserialize<'de> for SubTransaction
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 SubTransaction
impl PartialEq for SubTransaction
Source§impl Serialize for SubTransaction
impl Serialize for SubTransaction
impl StructuralPartialEq for SubTransaction
Auto Trait Implementations§
impl Freeze for SubTransaction
impl RefUnwindSafe for SubTransaction
impl Send for SubTransaction
impl Sync for SubTransaction
impl Unpin for SubTransaction
impl UnwindSafe for SubTransaction
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