pub struct ProcessingCode {
pub transaction_type: TransactionType,
pub from_account: AccountType,
pub to_account: AccountType,
}Available on crate feature
std only.Expand description
Processing Code (6 digits)
Fields§
§transaction_type: TransactionType§from_account: AccountType§to_account: AccountTypeImplementations§
Source§impl ProcessingCode
impl ProcessingCode
Sourcepub const PURCHASE: Self
pub const PURCHASE: Self
Common processing codes as constants
Purchase from default account (000000)
Sourcepub const WITHDRAWAL_CHECKING: Self
pub const WITHDRAWAL_CHECKING: Self
Cash withdrawal from checking (010000)
Sourcepub const WITHDRAWAL_SAVINGS: Self
pub const WITHDRAWAL_SAVINGS: Self
Cash withdrawal from savings (011000)
Sourcepub const DEPOSIT_CHECKING: Self
pub const DEPOSIT_CHECKING: Self
Deposit to checking (210000)
Sourcepub const DEPOSIT_SAVINGS: Self
pub const DEPOSIT_SAVINGS: Self
Deposit to savings (211000)
Sourcepub const BALANCE_INQUIRY_CHECKING: Self
pub const BALANCE_INQUIRY_CHECKING: Self
Balance inquiry checking (310000)
Sourcepub const BALANCE_INQUIRY_SAVINGS: Self
pub const BALANCE_INQUIRY_SAVINGS: Self
Balance inquiry savings (311000)
Sourcepub const TRANSFER_CHECKING_TO_SAVINGS: Self
pub const TRANSFER_CHECKING_TO_SAVINGS: Self
Transfer checking to savings (401020)
Sourcepub fn new(
transaction_type: TransactionType,
from_account: AccountType,
to_account: AccountType,
) -> Self
pub fn new( transaction_type: TransactionType, from_account: AccountType, to_account: AccountType, ) -> Self
Create new processing code
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get transaction description
Sourcepub fn is_inquiry(&self) -> bool
pub fn is_inquiry(&self) -> bool
Check if this is a balance inquiry
Sourcepub fn is_transfer(&self) -> bool
pub fn is_transfer(&self) -> bool
Check if this is a transfer
Trait Implementations§
Source§impl Clone for ProcessingCode
impl Clone for ProcessingCode
Source§fn clone(&self) -> ProcessingCode
fn clone(&self) -> ProcessingCode
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 ProcessingCode
impl Debug for ProcessingCode
Source§impl Display for ProcessingCode
impl Display for ProcessingCode
Source§impl FromStr for ProcessingCode
impl FromStr for ProcessingCode
Source§impl Hash for ProcessingCode
impl Hash for ProcessingCode
Source§impl PartialEq for ProcessingCode
impl PartialEq for ProcessingCode
impl Copy for ProcessingCode
impl Eq for ProcessingCode
impl StructuralPartialEq for ProcessingCode
Auto Trait Implementations§
impl Freeze for ProcessingCode
impl RefUnwindSafe for ProcessingCode
impl Send for ProcessingCode
impl Sync for ProcessingCode
impl Unpin for ProcessingCode
impl UnsafeUnpin for ProcessingCode
impl UnwindSafe for ProcessingCode
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