/// Define a criteria query parameter.
///
/// Produces a triplet of pairs
///
/// ```ignore
/// tagtype_N=<criteria>
/// tag_contains_N=<op>
/// tag_N=<value>
/// ```
///
/// # Arguments
///
/// * criteria - A valid criteria name. See the [`API docs`].
/// * op - One of "contains" or "does_not_contain".
/// * value - The searched criteria value.
///
/// [`API docs`]: https://openfoodfacts.github.io/api-documentation/#5Filtering
Define a criteria query parameter.
Produces a triplet of pairs


Define a criteria query parameter . Produces a triplet of pairs
pub fn criteria(&mut self, criteria: &str, op: &str, value: &str) -> &mut Self {
        self.criteria_index += 1;
        self.params.push((
            format!("tagtype_{}", self.criteria_index),
            Value::from(criteria),
        ));
        self.params.push((
            format!("tag_contains_{}", self.criteria_index),
            Value::from(op),
        ));
        self.params
            .push((format!("tag_{}", self.criteria_index), Value::from(value)));
        self
    }
pub fn criteria ( & mut self , criteria : & str , op : & str , value : & str ) -> & mut Self { self . criteria_index += 1 ; self . params . push ( ( format ! ( " " self criteria_index ) , Value :: from ( criteria ) , ) ) ; self . params . push ( ( format ! ( " " self criteria_index ) , Value :: from ( op ) , ) ) ; self . params . push ( ( format ! ( " " self criteria_index ) , Value :: from ( value ) ) ) ; self }
Define a criteria query parameter.
Define a criteria query parameter .
&mut self
criteria
&str
op
&str
value
&str