rsapar 0.1.1

RSaPar is a Rust library for schema-based parsing and validation of structured data files, inspired by JSaPar for Java.
Documentation
<?xml version="1.0" encoding="UTF-8"?>
<schema>
  <fixedwidthschema lineseparator="\n">
    <line linetype="Header" occurs="*" maxlength="20">
      <cell name="RecordType" length="1">
        <linecondition><match type="string" pattern="H"/></linecondition>
      </cell>
      <cell name="RecordDate" length="8">
         <format type="date" pattern="%Y%m%d"/>
      </cell>
      <cell name="FileName" length="11">
        <format type="string" pattern=".*"/>
      </cell>
    </line>
    <line linetype="Body" occurs="*" maxlength="29">
      <cell name="UserID" length="4"/>
      <cell name="Amount" length="11">
        <format type="number" pattern="#######0.00"/>
      </cell>
      <cell name="email" length="14" alignment="right">
        <format type="string" pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"/>
      </cell>
    </line>
    <line linetype="Footer" occurs="*" maxlength="21">
      <cell name="RecordType" length="1">
        <linecondition><match type="string" pattern="F"/></linecondition>
      </cell>
      <cell name="RecordCount" length="7">
        <format type="string" pattern=".*"/>
      </cell>
      <cell name="TotalAmount" length="13">
        <format type="number" pattern="#########0.00"/>
      </cell>
    </line>
  </fixedwidthschema>
</schema>