1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use std::collections::HashMap; pub mod path; use path::{AbsolutePathBuf, RelativePathBuf}; pub struct Stop { pub id: String, pub title: String, pub body: String, pub path: RelativePathBuf, pub repository: String, pub line: usize, } pub struct Tour { pub protocol_version: String, pub id: String, pub title: String, pub description: String, pub stops: Vec<Stop>, pub repositories: HashMap<String, String>, } pub type Index = HashMap<String, AbsolutePathBuf>;