diff options
author | Minijackson <minijackson@riseup.net> | 2019-12-22 18:10:39 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2019-12-22 18:10:39 +0100 |
commit | a71e95bf4f07e044eb3f335929d2adea74247a9e (patch) | |
tree | 4aaed2deca529902c2c64e337047fef71aecb1db /src/types.rs | |
parent | e773caea8010b87726ea524d31798fb2e43e12f4 (diff) | |
download | poseidoc-a71e95bf4f07e044eb3f335929d2adea74247a9e.tar.gz poseidoc-a71e95bf4f07e044eb3f335929d2adea74247a9e.zip |
Fix TOC links for inline documentation
Diffstat (limited to 'src/types.rs')
-rw-r--r-- | src/types.rs | 4 |
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 | ||
24 | pub 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)] |