Crate dmarc_aggregate_parser

Source
Expand description

The DMARC Aggregate Parser is intended to provide a programmatical way to access information in an DMARC report.

Modules§

aggregate_report
Contains the required stuctures and enums used to store data from a parsed xml report.
error_handling
Provides the required error types that are expected to be possible while parsing a file.

Functions§

parse
This function takes a reference to a file to be parsed. If the file can not be parsed a ParsingError is returned. #Example:
parse_dir
This function takes a directory path as an argument. If no dmarc report are found, an empty Vec is returned. Any subdirectories are ignored. Any files that can not be parsed will be reported through STDERR