[][src]Function qif_parser::parse

pub fn parse(
    qif_content: &str,
    date_format: &str
) -> Result<Qif, QifParsingError>

This is the parsing function. It takes the text content of your QIF file as an argument, and the date format.

Indeed, the date in a QIF file doesn't have a pre-determined format, which means you could receive QIF files with completely different formats. Please use, for the date_format, the format you would use with Chrono (https://docs.rs/chrono/0.4.13/chrono/format/strftime/index.html#specifiers)

The parser will then return a Qif data structure or an error