Crate rs_ach

Crate rs_ach 

Source
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.
BatchControl
Batch Control Record (Record Type 8)
BatchHeader
Batch Header Record (Record Type 5)
EntryDetail
Entry Detail Record (Record Type 6)
FileControl
File Control Record (Record Type 9)
FileHeader
File Header Record (Record Type 1)

Enums§

AchError
Errors that can occur during ACH file parsing.