[−][src]Macro pact_consumer::term
A pattern which macthes the regular expression $regex
(specified as a
string) literal, and which generates $example
.
use pact_consumer::*; json_pattern!({ // Match a string consisting of numbers and lower case letters, and // generate `"10a"`.$crate::patterns:: "id_string": term!("^[0-9a-z]$", "10a") });