Function httptest::matchers::not

source ·
pub fn not<M>(inner: M) -> Not<M>
Expand description

invert the result of the inner mapper.

Example

use httptest::matchers::*;

// A request matcher that matches if there is no `foobar` query parameter.
request::query(url_decoded(not(contains(key("foobar")))));