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

Given the header field, matches the exact header value. There's also an implementation of From<&str> to keep things simple and backwards compatible.

Given the header field, matches any header value.

Matches when the header field is not be present in the request.

Trait Implementations

impl PartialEq for Matcher
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Matcher
[src]

Formats the value using the given formatter.

impl<'a> From<&'a str> for Matcher
[src]

Performs the conversion.

impl PartialEq<String> for Matcher
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.