INNER CODE UNIT · Rust

BoxErr

metatypedev/metatype · src/metagen-client-rs/src/lib.rs:20

    pub type BoxErr = Box<dyn std::error::Error + Send + Sync>;
    pub type JsonObject = serde_json::Map<String, serde_json::Value>;

    pub fn to_json_value<T: Serialize>(val: T) -> serde_json::Value {
        serde_json::to_value(val).expect("error serializing value")
    }
}

pub mod prelude {
    pub use crate::args::*;
    pub use crate::common::*;
    #[cfg(feature = "graphql")]
    pub use crate::files::*;
    #[cfg(feature = "graphql")]
    pub use crate::graphql::*;
    pub use crate::interlude::BoxErr;
    pub use crate::nodes::*;
    pub use crate::selection::*;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…