Expand description
ofx-rs – A Rust library for parsing Open Financial Exchange (OFX) documents.
This library provides a pure functional parser for OFX 1.x and 2.x documents. It takes string input and produces typed data structures with no I/O.
§Usage
use ofx_rs::parse;
let ofx_content = r#"<?OFX OFXHEADER="200" VERSION="220" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="NONE"?>
<OFX>
<SIGNONMSGSRSV1>
<SONRS>
<STATUS><CODE>0</CODE><SEVERITY>INFO</SEVERITY></STATUS>
<DTSERVER>20230115120000</DTSERVER>
<LANGUAGE>ENG</LANGUAGE>
</SONRS>
</SIGNONMSGSRSV1>
</OFX>"#;
let doc = parse(ofx_content).unwrap();
assert!(doc.signon().status().is_success());Re-exports§
pub use document::OfxDocument;pub use error::OfxError;
Modules§
- aggregates
- OFX aggregate types – composite structures built from primitive types.
- document
- Document-level types for the OFX protocol.
- error
- header
- OFX header parsing – handles both OFX 2.x XML processing instruction headers and legacy OFX 1.x SGML-style headers.
- types
- Primitive OFX types – newtypes and enums that form the foundation of the domain model.
- xml
- XML parsing infrastructure for OFX documents.
Functions§
- parse
- Parses a complete OFX document from a string.