schema_core/common/schema_path.rs
1use nutype::nutype;
2use std::path::PathBuf;
3
4#[nutype(derive(
5 Debug,
6 Clone,
7 AsRef,
8 Deref,
9 Hash,
10 Eq,
11 PartialEq,
12 Serialize,
13 Deserialize
14))]
15pub struct SchemaPath(PathBuf);
16
17impl AsRef<std::path::Path> for SchemaPath {
18 fn as_ref(&self) -> &std::path::Path {
19 self.as_path()
20 }
21}