Function httptest::matchers::eq

source ·
pub fn eq<T>(value: T) -> Eq<T>
Expand description

true if the input is equal to value.

§Example

use httptest::matchers::*;

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