naomijub/edn-rs

Deserialize EDN to Struct

naomijub opened this issue · 2 comments

#[derive(Deserialize, Debug)]
struct Id {
  id: i32
}
fn main() {
  let id = "{:id 1}";
  let new_id: Id =  edn_rs::from_str(id)?;
  println!("{:?}", new_id) // => Id {id: 1}
}

To be finished by #8