Check the documentation for more details.
- Provides two top-level parsing functions:
parseandloose_parse.loose_parseis less strict on the format of the incoming EDI document. - Parses a valid X12 EDI document into a struct called
EdiDocument. - Provides verbose error messages if the document being parsed is invalid.
- Error messages include the actual segment in which the error occurred.
EdiDocumentand all data it contains implementSerializeandDeserializefromserde, so zero-copy serialization and deserialization to any serde-able format is supported (this includes json).EdiDocument's fields are all public and it can be navigated like any other struct for simplicity
See the examples directory for an example.
- Cannot accurately determine segment types, as that requires an implementation guide from the individual transactor
- Cannot detect loops for the same reason as above
- Only supports standard X12 EDI