kvarn::prelude::parse

Struct Query

source
pub struct Query<'a> { /* private fields */ }
Expand description

A set of QueryPairs, parsed from a query.

This is a multimap (one to many relation between keys and values) struct. A query can have multiple values per name. If we always use the first or last value of a name in a query, subtle exploits slip in. You have to make a explicit choice of what to do in this implementation.

Note that the order of the names in the Display implementation may be in the right order.

Implementations§

source§

impl<'a> Query<'a>

source

pub fn get_all(&self, name: &'a str) ->