pub struct DocSpace {
pub pages: BTreeMap<String, PageView>,
pub by_slug: BTreeMap<String, String>,
pub links: BTreeMap<String, Vec<(String, String)>>,
}Expand description
Every live doc page of a place.
Fields§
§pages: BTreeMap<String, PageView>Page id → page, live pages only.
by_slug: BTreeMap<String, String>Slug → page id (the slug owner).
links: BTreeMap<String, Vec<(String, String)>>Page id → its live links_to edges as (edge id, target page id).
Implementations§
Trait Implementations§
impl StructuralPartialEq for DocSpace
Auto Trait Implementations§
impl Freeze for DocSpace
impl RefUnwindSafe for DocSpace
impl Send for DocSpace
impl Sync for DocSpace
impl Unpin for DocSpace
impl UnsafeUnpin for DocSpace
impl UnwindSafe for DocSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more