pub struct MemoryDocument {
pub name: String,
pub harness: String,
pub scope: MemoryScope,
pub profile: Option<String>,
pub path: PathBuf,
pub size: u64,
pub updated_at: Option<String>,
pub preview: Vec<String>,
pub truncated: bool,
pub content: Option<String>,
}Expand description
One memory document, as one harness holds it.
Fields§
§name: StringPath relative to the store’s own root (MEMORY.md,
memories/2026-09-01-notes.md).
harness: StringOwning harness id.
scope: MemoryScopeWhich config home this document belongs to.
profile: Option<String>Profile / agent / project this store belongs to, when the harness names one.
path: PathBufAbsolute path of the document.
size: u64Size on disk, in bytes.
updated_at: Option<String>Last modification time, RFC3339 UTC; None when the filesystem does
not report one.
preview: Vec<String>First [PREVIEW_LINES] lines, each clipped to [EXCERPT_CHARS].
truncated: boolWhether the document has more than the preview shows.
content: Option<String>Whole document text, only when the caller asked for full.
Trait Implementations§
Source§impl Clone for MemoryDocument
impl Clone for MemoryDocument
Source§fn clone(&self) -> MemoryDocument
fn clone(&self) -> MemoryDocument
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 MemoryDocument
impl Debug for MemoryDocument
Source§impl<'de> Deserialize<'de> for MemoryDocument
impl<'de> Deserialize<'de> for MemoryDocument
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryDocument, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryDocument, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemoryDocument
Source§impl PartialEq for MemoryDocument
impl PartialEq for MemoryDocument
Source§impl Serialize for MemoryDocument
impl Serialize for MemoryDocument
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MemoryDocument
Auto Trait Implementations§
impl Freeze for MemoryDocument
impl RefUnwindSafe for MemoryDocument
impl Send for MemoryDocument
impl Sync for MemoryDocument
impl Unpin for MemoryDocument
impl UnsafeUnpin for MemoryDocument
impl UnwindSafe for MemoryDocument
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.