[−][src]Function json_feed_model::from_slice
pub fn from_slice(v: &[u8]) -> Result<Feed, Error>
Attempts to JSON decode a byte slice and return a Feed
.
Errors
If the byte slice 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.