Skip to main content

serialize_query_results_with_default

Function serialize_query_results_with_default 

Source
pub fn serialize_query_results_with_default(
    results: &QueryResults,
    accept: Option<&str>,
    solutions_default: QueryResultsFormat,
) -> Result<(Vec<u8>, &'static str), ApiError>
Expand description

Like serialize_query_results, but solutions and boolean results fall back to solutions_default for absent / wildcard Accept values.

Graph results ignore solutions_default and keep the Turtle default of negotiate_graph_format.