Function httptest::matchers::any_of [−][src]
pub fn any_of<IN>(inner: Vec<Box<dyn Matcher<IN>>>) -> AnyOf<IN> where
IN: ?Sized,
true if any of the provided matchers returns true. See the any_of!
macro
for convenient usage.
Example
use httptest::matchers::*; // A request matcher that matches a request to path "/foo" // or matches the reqex '^/test/(foo|bar)$'. let mut m = any_of![ request::path("/foo"), request::path(matches("^/test/(foo|bar)$")), ];