1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Abstract object entities to support a common interface across //! JSON, Python, and BSON pub type Result<T> = std::result::Result<T, Error>; #[derive(Debug)] pub enum Error { KeyNotFound, DataTypeMismatch, } mod ent; #[cfg(feature = "json")] mod json; #[cfg(feature = "python")] mod py; pub use { self::ent::Ent };