pub struct ParsedMemory {
pub name: String,
pub description: Option<String>,
pub memory_type: Option<String>,
pub content: String,
pub file_path: String,
pub updated_at: DateTime<Utc>,
}Expand description
A memory parsed from a single markdown file on disk.
Fields§
§name: StringShort name (frontmatter name or the file stem).
description: Option<String>Optional description from frontmatter.
memory_type: Option<String>Optional memory type from metadata.type.
content: StringThe memory body following any frontmatter.
file_path: StringAbsolute path of the source file.
updated_at: DateTime<Utc>Source file modification time.
Trait Implementations§
Source§impl Clone for ParsedMemory
impl Clone for ParsedMemory
Source§fn clone(&self) -> ParsedMemory
fn clone(&self) -> ParsedMemory
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 moreSource§impl Debug for ParsedMemory
impl Debug for ParsedMemory
Source§impl PartialEq for ParsedMemory
impl PartialEq for ParsedMemory
Source§fn eq(&self, other: &ParsedMemory) -> bool
fn eq(&self, other: &ParsedMemory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParsedMemory
Auto Trait Implementations§
impl Freeze for ParsedMemory
impl RefUnwindSafe for ParsedMemory
impl Send for ParsedMemory
impl Sync for ParsedMemory
impl Unpin for ParsedMemory
impl UnsafeUnpin for ParsedMemory
impl UnwindSafe for ParsedMemory
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