Skip to main content

parse_edge_response

Function parse_edge_response 

Source
pub fn parse_edge_response(
    json: &str,
    direction: Direction,
) -> Result<Vec<Paper>, String>
Expand description

Parse a /citations or /references response.

Both wrap each paper one level deeper than /paper/search does — under citingPaper coming in, citedPaper going out — but the paper object itself is identical, so the mapping is shared.