Skip to content

Commit 36d4b3e

Browse files
committed
doc: Add some details
1 parent 37f7fc0 commit 36d4b3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/data_tree/reflection.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ use serde::{Deserialize, Serialize};
2424
/// * To safely convert a `Reflection` into a valid `DataTree`,
2525
/// use [`par_try_into_tree`](Self::par_try_into_tree).
2626
///
27-
/// **Serialization and deserialization:** Requires enabling the `json` feature to enable `serde`.
27+
/// **Serialization and deserialization:** _(feature: `json`)_ `Reflection` implements
28+
/// [`Serialize`] and [`Deserialize`] traits, this allows functions in [`serde_json`] to convert
29+
/// a `Reflection` into/from JSON.
2830
#[derive(Debug, Clone, PartialEq, Eq)]
2931
#[cfg_attr(feature = "json", derive(Deserialize, Serialize))]
3032
#[cfg_attr(feature = "json", serde(rename_all = "kebab-case"))]

0 commit comments

Comments
 (0)