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 } }