pub struct TopicFile {
pub name: String,
pub description: String,
pub kind: TopicKind,
pub body: String,
pub path: PathBuf,
}Expand description
A fully-loaded topic file.
Fields§
§name: StringThe slug (kebab-case).
description: StringOne-line description.
kind: TopicKindMemory type classification.
body: StringMarkdown body (everything after the closing frontmatter ---).
path: PathBufAbsolute path.
Trait Implementations§
impl Eq for TopicFile
impl StructuralPartialEq for TopicFile
Auto Trait Implementations§
impl Freeze for TopicFile
impl RefUnwindSafe for TopicFile
impl Send for TopicFile
impl Sync for TopicFile
impl Unpin for TopicFile
impl UnsafeUnpin for TopicFile
impl UnwindSafe for TopicFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.