pub fn from_reader<R>(reader: R) -> Result<Feed, Error>where
R: Read,Available on crate feature
std only.Expand description
Attempts to JSON decode a std::io::Read and return a Feed.
ยงErrors
If the data cannot be JSON decoded, then Error::SerdeJson(serde_json::Error) is returned.
If the decoded JSON value is not an Object, then Error::UnexpectedType is returned.