From 1d01a1cbf982adc2e6bbd8eb9c5b60200151645f Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 15 Jul 2024 21:54:04 +0200 Subject: [PATCH] docs(apb): some comments --- apb/src/node.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apb/src/node.rs b/apb/src/node.rs index 56cbcc2..22aa12b 100644 --- a/apb/src/node.rs +++ b/apb/src/node.rs @@ -1,9 +1,13 @@ /// ActivityPub object node, representing either nothing, something, a link to something or /// multiple things pub enum Node { + /// this document node holds multiple objects Array(std::collections::VecDeque>), // TODO would be cool to make it Box<[T]> so that Node is just a ptr + /// this document node holds one object Object(Box), + /// this document node holds a reference to an object Link(Box), // TODO feature flag to toggle these maybe? + /// this document node is not present Empty, }