pub enum AchError {
InvalidStandardEntryClass,
InvalidTransactionCode,
InvalidAddendaIndicator,
InvalidTraceNumberLength,
InvalidTraceNumberCharacter,
EmptyCompanyId,
CompanyIdTooLong,
InvalidCompanyIdCharacter,
EmptyIndividualId,
IndividualIdTooLong,
InvalidIndividualIdCharacter,
}Expand description
Errors returned by ACH primitives.
Variants§
InvalidStandardEntryClass
The SEC code is outside this crate’s conservative vocabulary.
InvalidTransactionCode
The transaction code is outside this crate’s conservative vocabulary.
InvalidAddendaIndicator
The addenda indicator was not 0 or 1.
InvalidTraceNumberLength
ACH trace numbers must be exactly 15 digits.
InvalidTraceNumberCharacter
ACH trace numbers must contain only digits.
EmptyCompanyId
The company identifier was empty after trimming whitespace.
CompanyIdTooLong
The company identifier was longer than 10 bytes.
InvalidCompanyIdCharacter
The company identifier contained an unsupported character.
EmptyIndividualId
The individual identifier was empty after trimming whitespace.
IndividualIdTooLong
The individual identifier was longer than 15 bytes.
InvalidIndividualIdCharacter
The individual identifier contained an unsupported character.
Trait Implementations§
impl Copy for AchError
impl Eq for AchError
Source§impl Error for AchError
impl Error for AchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for AchError
Auto Trait Implementations§
impl Freeze for AchError
impl RefUnwindSafe for AchError
impl Send for AchError
impl Sync for AchError
impl Unpin for AchError
impl UnsafeUnpin for AchError
impl UnwindSafe for AchError
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