Function jsonfeed::from_str
[−]
[src]
pub fn from_str(s: &str) -> Result<Feed>
Attempts to convert a string slice to a Feed object
Example
let json = r#"{"version": "https://jsonfeed.org/version/1", "title": "", "items": []}"#; let feed: Feed = jsonfeed::from_str(&json).unwrap(); assert_eq!(feed, Feed::default());