Rust使用Serde报错:`Deserialize` is imported here, but it is only a trait, without a derive macrorustc

在Rust使用Serde进行json序列化和反序列化时,报错 cannot find derive macro `Serialize` in this scoperustcClick for full compiler diagnostic config.rs(2, 26): `Serialize`

寻龙剑侠 寻龙剑侠 发布于 2024-12-05