summaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2019-12-22 18:10:39 +0100
committerMinijackson <minijackson@riseup.net>2019-12-22 18:10:39 +0100
commita71e95bf4f07e044eb3f335929d2adea74247a9e (patch)
tree4aaed2deca529902c2c64e337047fef71aecb1db /src/types.rs
parente773caea8010b87726ea524d31798fb2e43e12f4 (diff)
downloadposeidoc-a71e95bf4f07e044eb3f335929d2adea74247a9e.tar.gz
poseidoc-a71e95bf4f07e044eb3f335929d2adea74247a9e.zip
Fix TOC links for inline documentation
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs
index f378f8b..d192ab5 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -18,9 +18,11 @@ pub struct Entity {
18 pub kind: EntityKind, 18 pub kind: EntityKind,
19 pub brief_description: String, 19 pub brief_description: String,
20 pub documentation: String, 20 pub documentation: String,
21 pub children: BTreeMap<ChildrenKind, BTreeMap<EntityId, Entity>>, 21 pub children: Children,
22} 22}
23 23
24pub type Children = BTreeMap<ChildrenKind, BTreeMap<EntityId, Entity>>;
25
24// TODO: use newtype for entity kind, entity ID 26// TODO: use newtype for entity kind, entity ID
25 27
26#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)] 28#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]