Function httptest::matchers::eq[][src]

pub fn eq<T>(value: T) -> Eq<T>

true if the input is equal to value.

Example

use httptest::matchers::*;

request::body(json_decoded(eq(serde_json::json!({
    "foo": 1,
}))));