Macro pact_consumer::datetime
source ยท macro_rules! datetime { ($format:expr, $example:expr) => { ... }; }
Expand description
A pattern which macthes the datetime format string $format
and which generates $example
.
use pact_consumer::*;
json_pattern!({
"created_date": datetime!("yyyy-MM-dd HH:mm:ss", "2001-01-02 25:33:45")
});