[][src]Struct ynab_api::models::sub_transaction::SubTransaction

pub struct SubTransaction {
    pub id: String,
    pub transaction_id: String,
    pub amount: i64,
    pub memo: Option<String>,
    pub payee_id: Option<String>,
    pub category_id: Option<String>,
    pub transfer_account_id: Option<String>,
    pub deleted: bool,
}

Fields

id: Stringtransaction_id: Stringamount: i64

The subtransaction amount in milliunits format

memo: Option<String>payee_id: Option<String>category_id: Option<String>transfer_account_id: Option<String>

If a transfer, the account_id which the subtransaction transfers to

deleted: bool

Whether or not the subtransaction has been deleted. Deleted subtransactions will only be included in delta requests.

Methods

impl SubTransaction[src]

pub fn new(
    id: String,
    transaction_id: String,
    amount: i64,
    deleted: bool
) -> SubTransaction
[src]

Trait Implementations

impl PartialEq<SubTransaction> for SubTransaction[src]

impl Debug for SubTransaction[src]

impl StructuralPartialEq for SubTransaction[src]

impl Serialize for SubTransaction[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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