摘要: 环境 Time 2021-12-06 Rust 1.57.0 serde 1.0.130 serde_json 1.0.72 概念 参考:https://serde.rs/stream-array.html 示例 main.rs use serde::de::{self, SeqAccess, Vi 阅读全文
posted @ 2022-01-19 22:43 jiangbo4444 阅读(70) 评论(0) 推荐(0)
摘要: 环境 Time 2021-12-07 Rust 1.57.0 serde 1.0.130 serde_json 1.0.72 概念 参考:https://serde.rs/unit-testing.html 示例 main.rs use std::collections::HashMap; use 阅读全文
posted @ 2022-01-19 22:43 jiangbo4444 阅读(68) 评论(0) 推荐(0)
摘要: 环境 Time 2021-12-04 Rust 1.57.0 serde 1.0.130 serde_json 1.0.72 概念 参考:https://serde.rs/json.html 示例 serde 会将元组转换成 JSON 中数组的形式。 main.rs fn main() { let 阅读全文
posted @ 2022-01-19 22:42 jiangbo4444 阅读(368) 评论(0) 推荐(1)
摘要: 环境 Time 2021-12-07 Rust 1.57.0 serde 1.0.130 serde_json 1.0.72 概念 参考:https://serde.rs/ignored-any.html 示例 main.rs use std::fmt; use std::marker::Phant 阅读全文
posted @ 2022-01-19 22:41 jiangbo4444 阅读(113) 评论(0) 推荐(0)