Skip to main content

pairs

Function pairs 

Source
pub fn pairs(
    query: Option<&str>,
    names: &[&str],
) -> Result<BTreeMap<String, String>, BadQuery>
Expand description

The parameters of query, percent-decoded, by name. A name that is not in names, or that is given twice, is refused, so a misspelt or repeated parameter never goes unnoticed. No query is no parameters.

ยงErrors

BadQuery if a name is not in names, a name is given twice, or a piece has no =.