use-ach 0.1.0

Conservative ACH and NACHA-oriented primitives for RustUse finance crates
Documentation
  • Coverage
  • 100%
    78 out of 78 items documented1 out of 39 items with examples
  • Size
  • Source code size: 28.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-finance
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-ach

Conservative ACH and NACHA-oriented primitives for RustUse finance crates.

use-ach provides small enums, identifiers, and lightweight entry metadata for local ACH vocabulary. It intentionally avoids full NACHA file parsing or payment-network workflow rules.

Example

use use_ach::{
    AchEntry, AchStandardEntryClass, AchTraceNumber, AchTransactionCode, AchCompanyId,
    AchIndividualId,
};

let entry = AchEntry::new(
    AchStandardEntryClass::Ppd,
    AchTransactionCode::CheckingCredit,
    AchTraceNumber::new("123456780000001")?,
    AchCompanyId::new("1234567890")?,
    AchIndividualId::new("EMPLOYEE001")?,
);

assert_eq!(entry.standard_entry_class().as_str(), "PPD");
assert_eq!(entry.transaction_code().code(), 22);
assert_eq!(entry.trace_number().odfi_identification(), "12345678");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for ACH/NACHA vocabulary, identifiers, and entry metadata. It does not parse or generate full NACHA files, process payments, model returns or reversals, choose settlement windows, enforce same-day ACH operational rules, or implement ODFI/RDFI workflows.

License

Licensed under either MIT or Apache-2.0.