stubr 0.6.2

Wiremock implemented in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde_json::Value;

use super::JsonMatcher;

pub struct JsonExactMatcher<'a>(pub &'a Value);

impl<'a> JsonMatcher<'a> for JsonExactMatcher<'a> {
    fn matches(&self, json: &'a Value) -> bool {
        self.0 == json
    }
}