Learn Rust - Struct ↔ JSON. ... #[macro_use] extern crate serde_derive; #[derive(Serialize, Deserialize, Debug)] struct Point { x: i32, y: i32, } ...
確定! 回上一頁