pub struct MemoryFormat;Expand description
Parses and serializes memory entries in YAML frontmatter + markdown format.
Implementations§
Source§impl MemoryFormat
impl MemoryFormat
Sourcepub fn parse(content: &str) -> Option<MemoryEntry>
pub fn parse(content: &str) -> Option<MemoryEntry>
Parse a memory file content into a MemoryEntry. Returns None if frontmatter is missing, malformed, or missing required fields.
Sourcepub fn serialize(entry: &MemoryEntry) -> String
pub fn serialize(entry: &MemoryEntry) -> String
Serialize a MemoryEntry to a string suitable for writing to a file.
Auto Trait Implementations§
impl Freeze for MemoryFormat
impl RefUnwindSafe for MemoryFormat
impl Send for MemoryFormat
impl Sync for MemoryFormat
impl Unpin for MemoryFormat
impl UnsafeUnpin for MemoryFormat
impl UnwindSafe for MemoryFormat
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