pub fn parse<T: DeserializeOwned>( content: &str, format: Format, ) -> Result<T, String>
Parse a document into any deserializable type, in either format.