From ae5121a54e82795eca34829cb15b8ac8e51ca591 Mon Sep 17 00:00:00 2001 From: Jonathan Martin Date: Sun, 12 Sep 2021 18:45:30 +0200 Subject: [PATCH] mention `serde_json::from_value` in the doc it feels wrong not to mention `serde_json::from_value` the same way as `from_slice` and `from_buffer`. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index db10cad87..e3fd17591 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -163,6 +163,10 @@ //! error messages if the layout does not conform to what a `Person` is expected //! to look like. //! +//! You can also use [`from_slice`][from_slice] and [`from_reader`][from_reader] +//! in this case as well, with the addition of [`from_value`][from_value] to +//! convert from an existing `serde_json::Value`. +//! //! Any type that implements Serde's `Deserialize` trait can be deserialized //! this way. This includes built-in Rust standard library types like `Vec` //! and `HashMap`, as well as any structs or enums annotated with