#[dbstruct::dbstruct(db=trait)] pub struct Test { the_awnser: Option, the_question: Option, } fn main() -> Result<(), Box> { let ds = sled::Config::default() .temporary(true) .open()? .open_tree("MacroInput")?; let db = Test::new(ds).unwrap(); db.the_awnser().set(&42).unwrap(); db.the_question() .set(&"The Ultimate Question".to_owned()) .unwrap(); Ok(()) }