uuid

Function uuid 

Source
pub fn uuid() -> ExpectUuid
Expand description

Expect a valid UUID.

use std::time::Duration;
use axum_test::expect_json;

let server = TestServer::new(Router::new())?;

server.get(&"/user/alice")
    .await
    .assert_json(&json!({
        "name": "Alice",
        "id": expect_json::uuid(),
    }));