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, }