1 2 3 4 5 6 7 8 9 10 11 12 13 14
mod util; use schemars::JsonSchema; use url::Url; use util::*; #[derive(Debug, JsonSchema)] struct UrlTypes { url: Url, } #[test] fn url_types() -> TestResult { test_default_generated_schema::<UrlTypes>("url") }