Expand description
§rs-ach
ACH (Automated Clearing House) file parser for Rust.
This crate provides a safe interface for parsing ACH files following the NACHA (National Automated Clearing House Association) specifications.
§Features
- Parse ACH file headers and batch records
- Support for PPD, CCD, and other standard entry class codes
- Entry detail records with addenda support
- Type-safe parsing with comprehensive error handling
- Zero-copy parsing where possible
§Example
use rs_ach::AchFile;
let ach_content = std::fs::read_to_string("sample.ach").unwrap();
let ach_file = AchFile::parse(&ach_content).unwrap();
for batch in &ach_file.batches {
println!("Batch: {}", batch.header.company_name);
for entry in &batch.entries {
println!(" Entry: {} - ${}", entry.individual_name, entry.amount);
}
}Structs§
- AchFile
- Represents a complete ACH file with file header, batches, and file control.
- Addenda
- Addenda Record (Record Type 7)
- Batch
- Represents a batch within an ACH file.
- Batch
Control - Batch Control Record (Record Type 8)
- Batch
Header - Batch Header Record (Record Type 5)
- Entry
Detail - Entry Detail Record (Record Type 6)
- File
Control - File Control Record (Record Type 9)
- File
Header - File Header Record (Record Type 1)
Enums§
- AchError
- Errors that can occur during ACH file parsing.