pub fn match_format_from_query( endpoint: &Endpoint, query: &HashMap<String, String>, ) -> Result<Format>
Match the format from a query parameter.