pub struct Memory {
pub file_stem: String,
pub name: String,
pub description: Option<String>,
pub memory_type: Option<String>,
pub file_path: PathBuf,
pub body: String,
pub extra: BTreeMap<String, String>,
}Expand description
Full memory record returned by MemoryRoot::get.
Fields§
§file_stem: StringFile stem (the basename of <stem>.md). The canonical
handle for lookup.
name: StringFrontmatter name if present; falls back to file_stem.
description: Option<String>Frontmatter description if present.
memory_type: Option<String>The type recorded under metadata:, as a plain string.
file_path: PathBufAbsolute path to the source .md.
body: StringMarkdown body after the frontmatter block (trimmed of
leading/trailing blank lines). [[wiki-style]] links are
left verbatim.
extra: BTreeMap<String, String>Frontmatter keys other than the typed ones, flattened line by line (nested YAML keys appear under their own names). Preserves unknown future fields verbatim as raw strings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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