Skip to content

Commit 55abfae

Browse files
committed
doc: How to serialize and deserialize DataTree
1 parent 82ecfda commit 55abfae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data_tree.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ pub use Reflection as DataTreeReflection;
77
use super::size::Size;
88

99
/// Disk usage data of a filesystem tree.
10+
///
11+
/// **Serializing and deserializing:** _(feature: `json`)_ `DataTree` does not implement
12+
/// [`Serialize`](serde::Serialize) and [`Deserialize`](serde::Deserialize) traits directly,
13+
/// instead, it can be converted into/from a [`Reflection`] which implements these traits.
1014
#[derive(Debug, PartialEq, Eq)]
1115
pub struct DataTree<Name, Data: Size> {
1216
name: Name,

0 commit comments

Comments
 (0)