#[derive(Serialize, Deserialize)]
pub struct Address {
pub city: String,
pub zip: String,
}
#[derive(Serialize, Deserialize)]
pub struct Root {
pub name: String,
pub age: i64,
pub address: Address,
}
本工具是一个在线将JSON字符串转换为带有serde支持的Rust结构体定义的工具。