rbs

use example

rust fn main(){ #[derive(serde::Serialize, serde::Deserialize, Debug)] pub struct A { pub name: String, } let a = A { name: "sss".to_string(), }; let v = rbs::to_value(a).unwrap(); println!("v: {}",v); let s: A = rbs::from_value(v).unwrap(); println!("s:{:?}", s); let json = v.to_string(); println!("json:{}",json); assert_eq!(r#"{"name":"sss"}"#,json); }