pub fn iso_date_time() -> ExpectIsoDateTimeExpand description
Expects a valid-looking ISO date time.
use axum_test::expect_json::expect;
use std::time::Duration;
let server = TestServer::new(Router::new())?;
server.get(&"/user/barrington")
.await
.assert_json(&json!({
"name": "Barrington",
"created_at": expect::iso_date_time().within_past(Duration::from_secs(60)),
}));