pub struct AchFile<'a> {
pub file_header: FileHeader<'a>,
pub batches: Vec<Batch<'a>>,
pub file_control: FileControl,
}Expand description
Represents a complete ACH file with file header, batches, and file control.
Fields§
§file_header: FileHeader<'a>File header record (record type 1)
batches: Vec<Batch<'a>>Collection of batches in the file
file_control: FileControlFile control record (record type 9)
Implementations§
Source§impl<'a> AchFile<'a>
impl<'a> AchFile<'a>
Sourcepub fn parse(content: &'a str) -> Result<Self, AchError>
pub fn parse(content: &'a str) -> Result<Self, AchError>
Parse an ACH file from a string.
§Arguments
content- The complete ACH file content as a string
§Returns
Returns a parsed AchFile on success, or an AchError if parsing fails.
§Example
use rs_ach::AchFile;
let ach_content = std::fs::read_to_string("sample.ach").unwrap();
let ach_file = AchFile::parse(&ach_content).unwrap();Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AchFile<'a>
impl<'a> RefUnwindSafe for AchFile<'a>
impl<'a> Send for AchFile<'a>
impl<'a> Sync for AchFile<'a>
impl<'a> Unpin for AchFile<'a>
impl<'a> UnwindSafe for AchFile<'a>
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