pub struct Concept<'a> {
pub explanation: &'a Explanation,
pub frontmatter: Frontmatter,
pub body: Option<String>,
pub member: Option<String>,
}Expand description
A concept ready to be written: its node, its frontmatter, and its prose.
Fields§
§explanation: &'a ExplanationThe graph node and its neighbourhood.
frontmatter: FrontmatterThe frontmatter to render.
body: Option<String>The node’s prose body, when it has one.
member: Option<String>The workspace member this concept came from, for a bundle spanning several
repositories (ADR-0009). None for a single project.
Nesting by member is what stops two repositories’ file:README.md landing
on one path. The vault this replaces solved the same problem by qualifying
the key and hashing the filename, because it had one flat directory to
work with; a bundle has directories, so the structure carries it.
Auto Trait Implementations§
impl<'a> Freeze for Concept<'a>
impl<'a> RefUnwindSafe for Concept<'a>
impl<'a> Send for Concept<'a>
impl<'a> Sync for Concept<'a>
impl<'a> Unpin for Concept<'a>
impl<'a> UnsafeUnpin for Concept<'a>
impl<'a> UnwindSafe for Concept<'a>
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