pub trait Object {
// Required method
fn typename(&self) -> &str;
// Provided methods
fn get(&self, key: &str) -> Option<Value> { ... }
fn set(&self, key: &str, val: Value) { ... }
}
Expand description
If you want to expose your own structs to Hatter code, this is the trait for you.