From 47947fc9148027fde2aa69d619b6ea5a5cec9d35 Mon Sep 17 00:00:00 2001 From: phga Date: Wed, 25 Jan 2023 15:08:57 +0100 Subject: [PATCH] feat: Example output --- serde_json_test/src/main.rs | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/serde_json_test/src/main.rs b/serde_json_test/src/main.rs index d5ac30f..117e1af 100644 --- a/serde_json_test/src/main.rs +++ b/serde_json_test/src/main.rs @@ -59,3 +59,43 @@ fn main() { let obj: Cl2 = serde_json::from_str(&json).unwrap(); dbg!(obj); } + +/// Output: +/// +/// [src/main.rs:58] &json = "{\"cache\":[[[4,5,6],{\"path\":[4,5,6],\"count\":87}],[[1,2,3],{\"path\":[1,2,3],\"count\":37}]]}" +/// [src/main.rs:60] obj = Cl2 { +/// cache: { +/// Path( +/// [ +/// 1, +/// 2, +/// 3, +/// ], +/// ): Rel { +/// path: Path( +/// [ +/// 1, +/// 2, +/// 3, +/// ], +/// ), +/// count: 37, +/// }, +/// Path( +/// [ +/// 4, +/// 5, +/// 6, +/// ], +/// ): Rel { +/// path: Path( +/// [ +/// 4, +/// 5, +/// 6, +/// ], +/// ), +/// count: 87, +/// }, +/// }, +/// } \ No newline at end of file