use serde_derive::{Serialize, Deserialize}; use std::collections::BTreeMap; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Poseidoc { pub config: toml::Value, pub entities: BTreeMap, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Entity { pub name: String, //location: SourceLocation pub language: String, pub kind: String, pub brief_description: String, pub documentation: String, pub children: BTreeMap>, } // TODO: use newtype for language, entity kind, entity ID