pub struct TopicDraft {
pub name: String,
pub description: String,
pub kind: TopicKind,
pub body: String,
}Expand description
Draft passed to TopicLoader::write. The loader fills in path / on-disk
frontmatter from these fields.
Fields§
§name: StringThe slug (kebab-case). Must pass validate_slug.
description: StringOne-line description for the MEMORY.md index entry + frontmatter.
kind: TopicKindMemory type classification.
body: StringRaw markdown body (no frontmatter — the loader emits it).
Trait Implementations§
Source§impl Clone for TopicDraft
impl Clone for TopicDraft
Source§fn clone(&self) -> TopicDraft
fn clone(&self) -> TopicDraft
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TopicDraft
impl RefUnwindSafe for TopicDraft
impl Send for TopicDraft
impl Sync for TopicDraft
impl Unpin for TopicDraft
impl UnsafeUnpin for TopicDraft
impl UnwindSafe for TopicDraft
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