Transaction

Struct Transaction 

Source
pub struct Transaction {
Show 61 fields pub amount: String, pub date: String, pub type: Type, pub description: String, pub source_id: String, pub destination_id: String, pub interest_date: Option<String>, pub book_date: Option<String>, pub process_date: Option<String>, pub due_date: Option<String>, pub invoice_date: Option<String>, pub payment_date: Option<String>, pub currency_id: Option<String>, pub currency_code: Option<String>, pub currency_symbol: Option<String>, pub currency_name: Option<String>, pub currency_decimal_places: Option<u32>, pub foreign_currency_id: Option<String>, pub foreign_currency_code: Option<String>, pub foreign_currency_symbol: Option<String>, pub foreign_currency_name: Option<String>, pub foreign_currency_decimal_places: Option<u32>, pub foreign_amount: Option<String>, pub source_name: Option<String>, pub source_iban: Option<String>, pub source_type: Option<String>, pub destination_name: Option<String>, pub destination_iban: Option<String>, pub destination_type: Option<String>, pub budget_id: Option<String>, pub budget_name: Option<String>, pub category_id: Option<String>, pub category_name: Option<String>, pub bill_id: Option<String>, pub bill_name: Option<String>, pub reconciled: Option<bool>, pub notes: Option<String>, pub tags: Option<Vec<String>>, pub internal_reference: Option<String>, pub external_id: Option<String>, pub external_url: Option<String>, pub original_source: Option<String>, pub recurrence_id: Option<String>, pub recurrence_total: Option<u32>, pub recurrence_count: Option<u32>, pub sepa_cc: Option<String>, pub sepa_ct_op: Option<String>, pub sepa_ct_id: Option<String>, pub sepa_db: Option<String>, pub sepa_country: Option<String>, pub sepa_ep: Option<String>, pub sepa_ci: Option<String>, pub sepa_batch_id: Option<String>, pub user: Option<String>, pub order: Option<u32>, pub transaction_journal_id: Option<String>, pub import_hash_v2: Option<String>, pub latitude: Option<f64>, pub longitude: Option<f64>, pub zoom_level: Option<u32>, pub has_attachments: Option<bool>,
}

Fields§

§amount: String§date: String§type: Type§description: String§source_id: String§destination_id: String§interest_date: Option<String>§book_date: Option<String>§process_date: Option<String>§due_date: Option<String>§invoice_date: Option<String>§payment_date: Option<String>§currency_id: Option<String>§currency_code: Option<String>§currency_symbol: Option<String>§currency_name: Option<String>§currency_decimal_places: Option<u32>§foreign_currency_id: Option<String>§foreign_currency_code: Option<String>§foreign_currency_symbol: Option<String>§foreign_currency_name: Option<String>§foreign_currency_decimal_places: Option<u32>§foreign_amount: Option<String>§source_name: Option<String>§source_iban: Option<String>§source_type: Option<String>§destination_name: Option<String>§destination_iban: Option<String>§destination_type: Option<String>§budget_id: Option<String>§budget_name: Option<String>§category_id: Option<String>§category_name: Option<String>§bill_id: Option<String>§bill_name: Option<String>§reconciled: Option<bool>§notes: Option<String>§tags: Option<Vec<String>>§internal_reference: Option<String>§external_id: Option<String>§external_url: Option<String>§original_source: Option<String>§recurrence_id: Option<String>§recurrence_total: Option<u32>§recurrence_count: Option<u32>§sepa_cc: Option<String>§sepa_ct_op: Option<String>§sepa_ct_id: Option<String>§sepa_db: Option<String>§sepa_country: Option<String>§sepa_ep: Option<String>§sepa_ci: Option<String>§sepa_batch_id: Option<String>§user: Option<String>§order: Option<u32>§transaction_journal_id: Option<String>§import_hash_v2: Option<String>§latitude: Option<f64>§longitude: Option<f64>§zoom_level: Option<u32>§has_attachments: Option<bool>

Trait Implementations§

Source§

impl Clone for Transaction

Source§

fn clone(&self) -> Transaction

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Transaction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Transaction

Source§

fn default() -> Transaction

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Transaction

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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