Function parse_metadata
Source pub fn parse_metadata(
content: &str,
file_path: &Path,
repository: &Path,
format: InputFormat,
) -> Result<Item, SaraError>
Expand description
Parses content and extracts an Item.
Dispatches to the appropriate format-specific parser based on format.
ยงErrors
Returns SaraError if the content cannot be parsed in the given format.