pub struct MemorySummary {
pub file_stem: String,
pub name: String,
pub description: Option<String>,
pub memory_type: Option<String>,
pub file_path: PathBuf,
pub size_bytes: u64,
}Expand description
Lightweight metadata for one memory file, returned by
MemoryRoot::list. Strips the body to keep listings cheap.
Fields§
§file_stem: StringFile stem (the basename of <stem>.md). The canonical
handle for MemoryRoot::get.
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: (user, feedback,
project, reference, or anything future), carried as a
plain string.
file_path: PathBufAbsolute path to the source .md.
size_bytes: u64File size in bytes.
Trait Implementations§
Source§impl Clone for MemorySummary
impl Clone for MemorySummary
Source§fn clone(&self) -> MemorySummary
fn clone(&self) -> MemorySummary
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 MemorySummary
impl Debug for MemorySummary
Auto Trait Implementations§
impl Freeze for MemorySummary
impl RefUnwindSafe for MemorySummary
impl Send for MemorySummary
impl Sync for MemorySummary
impl Unpin for MemorySummary
impl UnsafeUnpin for MemorySummary
impl UnwindSafe for MemorySummary
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