Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> ParseResult<Vec<Feed>>
Expand description

Parses an Atom document into one Feed per <entry>.

The href of each entry’s alternate text/html <link> becomes the feed link; other link relations are ignored.

§Errors

Returns ParseError::XmlParseError if the document is not well-formed XML, ParseError::MissingField if an entry lacks a required field, and ParseError::InvalidFeedFormat if an entry is never closed.