pub struct MarkdownContent {
pub frontmatter: Option<HashMap<String, Value>>,
pub content: String,
pub sections: HashMap<String, String>,
pub tasks: Vec<TaskItem>,
pub metadata: FileMetadata,
}Expand description
Represents the parsed content of a markdown file
This structure captures all the important information that can be extracted from a memory bank markdown file, including frontmatter, content sections, and structured data like task lists.
Fields§
§frontmatter: Option<HashMap<String, Value>>YAML frontmatter data, if present
content: StringRaw markdown content without frontmatter
sections: HashMap<String, String>Structured sections extracted from the content Maps section headings to their content
tasks: Vec<TaskItem>Extracted task information, if any
metadata: FileMetadataFile metadata extracted from content
Trait Implementations§
Source§impl Clone for MarkdownContent
impl Clone for MarkdownContent
Source§fn clone(&self) -> MarkdownContent
fn clone(&self) -> MarkdownContent
Returns a duplicate of the value. Read more
1.0.0 · 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 MarkdownContent
impl RefUnwindSafe for MarkdownContent
impl Send for MarkdownContent
impl Sync for MarkdownContent
impl Unpin for MarkdownContent
impl UnwindSafe for MarkdownContent
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