schemars/schemars/tests/ffi.rs
2019-10-27 19:41:25 +00:00

15 lines
288 B
Rust

mod util;
use schemars::JsonSchema;
use util::*;
use std::ffi::{OsStr, OsString};
#[derive(Debug, JsonSchema)]
struct OsStrings {
owned: OsString,
borrowed: &'static OsStr,
}
#[test]
fn os_strings() -> TestResult {
test_default_generated_schema::<OsStrings>("os_strings")
}