pub trait Matcher<Ctx: ?Sized>: MaybeSend + MaybeSync {
// Required method
fn compile(&self, value: &JsonValue) -> Result<Operator<Ctx>, Error>;
// Provided method
fn json_schema(&self, custom_ops: &[(&str, JsonValue)]) -> JsonValue { ... }
}
Expand description
Trait for types matchers
Required Methods§
Provided Methods§
Sourcefn json_schema(&self, custom_ops: &[(&str, JsonValue)]) -> JsonValue
fn json_schema(&self, custom_ops: &[(&str, JsonValue)]) -> JsonValue
Returns a JSON Schema that describes valid inputs for this matcher.