Enum mockito::Matcher
[−]
[src]
pub enum Matcher { Exact(String), Any, Missing, }
Allows matching headers in multiple ways: matching the exact field name and value, matching only by field name or matching that the field name is not present at all.
These matchers are used within the Mock::match_header
call.
Variants
Exact(String)
Given the header field, matches the exact header value. There's also an implementation of From<&str>
to keep things simple and backwards compatible.
Any
Given the header field, matches any header value.
Missing
Matches when the header field is not be present in the request.
Trait Implementations
impl PartialEq for Matcher
[src]
fn eq(&self, __arg_0: &Matcher) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Matcher) -> bool
This method tests for !=
.