pub enum AchTransactionCode {
CheckingCredit,
CheckingPrenoteCredit,
CheckingDebit,
CheckingPrenoteDebit,
SavingsCredit,
SavingsPrenoteCredit,
SavingsDebit,
SavingsPrenoteDebit,
LoanCredit,
LoanPrenoteCredit,
}Expand description
Conservative ACH transaction-code vocabulary.
Variants§
CheckingCredit
Credit destined for a checking account.
CheckingPrenoteCredit
Prenotification credit destined for a checking account.
CheckingDebit
Debit destined for a checking account.
CheckingPrenoteDebit
Prenotification debit destined for a checking account.
SavingsCredit
Credit destined for a savings account.
SavingsPrenoteCredit
Prenotification credit destined for a savings account.
SavingsDebit
Debit destined for a savings account.
SavingsPrenoteDebit
Prenotification debit destined for a savings account.
LoanCredit
Credit destined for a loan account.
LoanPrenoteCredit
Prenotification credit destined for a loan account.
Implementations§
Source§impl AchTransactionCode
impl AchTransactionCode
Sourcepub const fn from_code(code: u8) -> Result<Self, AchError>
pub const fn from_code(code: u8) -> Result<Self, AchError>
Creates a transaction code from a numeric NACHA transaction code.
§Errors
Returns AchError::InvalidTransactionCode when the code is not in this crate’s
conservative transaction-code vocabulary.
Sourcepub const fn account_type(self) -> AchAccountType
pub const fn account_type(self) -> AchAccountType
Returns the account type implied by the transaction code.
Sourcepub const fn direction(self) -> AchEntryDirection
pub const fn direction(self) -> AchEntryDirection
Returns the direction implied by the transaction code.
Sourcepub const fn is_prenote(self) -> bool
pub const fn is_prenote(self) -> bool
Returns whether the transaction code is a prenotification code.
Trait Implementations§
Source§impl Clone for AchTransactionCode
impl Clone for AchTransactionCode
Source§fn clone(&self) -> AchTransactionCode
fn clone(&self) -> AchTransactionCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AchTransactionCode
Source§impl Debug for AchTransactionCode
impl Debug for AchTransactionCode
Source§impl Display for AchTransactionCode
impl Display for AchTransactionCode
impl Eq for AchTransactionCode
Source§impl FromStr for AchTransactionCode
impl FromStr for AchTransactionCode
Source§impl Hash for AchTransactionCode
impl Hash for AchTransactionCode
Source§impl Ord for AchTransactionCode
impl Ord for AchTransactionCode
Source§fn cmp(&self, other: &AchTransactionCode) -> Ordering
fn cmp(&self, other: &AchTransactionCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AchTransactionCode
impl PartialEq for AchTransactionCode
Source§fn eq(&self, other: &AchTransactionCode) -> bool
fn eq(&self, other: &AchTransactionCode) -> bool
self and other values to be equal, and is used by ==.