Skip to main content

parse_bytes

Function parse_bytes 

Source
pub fn parse_bytes(bytes: &[u8]) -> Result<Report, Error>
Expand description

Parse a DMARC aggregate report from a byte slice.

ยงErrors

Returns Error::Utf8 if the bytes are not valid UTF-8, or Error::Parse if the XML is invalid or non-conformant.