1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#[cfg(feature = "trait_json")]
pub mod _json;

#[cfg(feature = "trait_serde_json")]
pub mod _serde_json;

#[cfg(feature = "trait_serde_yaml")]
pub mod _serde_yaml;

pub mod rust_type;

pub mod loaders {
    #[allow(unused_imports)]
    use crate::Loader;

    #[cfg(feature = "trait_json")]
    pub type JsonLoader = Loader<json::JsonValue, json::Error>;

    #[cfg(feature = "trait_serde_json")]
    pub type SerdeJsonLoader = Loader<serde_json::Value, serde_json::Error>;

    #[cfg(feature = "trait_serde_yaml")]
    pub type SerdeYamlLoader = Loader<serde_yaml::Value, serde_yaml::Error>;

    pub type RustTypeLoader = Loader<::json_trait_rs::RustType, ()>;
}