pub enum TransactionKind {
Show 14 variants
Credit,
Debit,
Payment,
Transfer,
StandingOrder,
Eftpos,
Interest,
Fee,
Tax,
CreditCard,
DirectDebit,
DirectCredit,
Atm,
Loan,
}Expand description
What sort of transaction this is. Akahu tries to find a specific transaction type, falling back to “CREDIT” or “DEBIT” if nothing else is available.
[https://developers.akahu.nz/docs/the-transaction-model#type]
Variants§
Credit
Money has entered the account.
Debit
Money has left the account.
Payment
A payment to an external account.
Transfer
A transfer between accounts that are associated with the same credentials.
StandingOrder
An automatic payment.
Eftpos
A payment made via the EFTPOS system.
Interest
An interest payment from the account provider.
Fee
A fee from the account provider.
Tax
A tax payment.
CreditCard
A credit card payment.
DirectDebit
A direct debit payment.
DirectCredit
A direct credit (someone paying into the account).
Atm
An ATM deposit or withdrawal.
Loan
A payment related to a loan.
Implementations§
Trait Implementations§
Source§impl Clone for TransactionKind
impl Clone for TransactionKind
Source§fn clone(&self) -> TransactionKind
fn clone(&self) -> TransactionKind
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 TransactionKind
impl Debug for TransactionKind
Source§impl<'de> Deserialize<'de> for TransactionKind
impl<'de> Deserialize<'de> for TransactionKind
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 Display for TransactionKind
impl Display for TransactionKind
Source§impl FromStr for TransactionKind
impl FromStr for TransactionKind
Source§impl PartialEq for TransactionKind
impl PartialEq for TransactionKind
Source§impl Serialize for TransactionKind
impl Serialize for TransactionKind
Source§impl TryFrom<&str> for TransactionKind
impl TryFrom<&str> for TransactionKind
Source§impl TryFrom<String> for TransactionKind
impl TryFrom<String> for TransactionKind
impl Eq for TransactionKind
impl StructuralPartialEq for TransactionKind
Auto Trait Implementations§
impl Freeze for TransactionKind
impl RefUnwindSafe for TransactionKind
impl Send for TransactionKind
impl Sync for TransactionKind
impl Unpin for TransactionKind
impl UnwindSafe for TransactionKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.