pub struct MemoryRevisionEntry {
pub source_id: String,
pub depth: i64,
pub title: String,
pub content_preview: String,
pub last_modified: i64,
pub source_agent: Option<String>,
pub supersede_mode: Option<String>,
pub delta_summary: Option<String>,
}Expand description
One entry in a memory’s supersede chain, returned by /api/memory/{id}/revisions.
depth = 0 is the current (most-recent) memory; higher depths are older
predecessors. delta_summary is None for the deepest entry (no predecessor
to diff against) and computed heuristically for all shallower entries.
Fields§
§source_id: String§depth: i64§title: String§content_preview: String§last_modified: i64§source_agent: Option<String>§supersede_mode: Option<String>§delta_summary: Option<String>Trait Implementations§
Source§impl Clone for MemoryRevisionEntry
impl Clone for MemoryRevisionEntry
Source§fn clone(&self) -> MemoryRevisionEntry
fn clone(&self) -> MemoryRevisionEntry
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 MemoryRevisionEntry
impl Debug for MemoryRevisionEntry
Source§impl<'de> Deserialize<'de> for MemoryRevisionEntry
impl<'de> Deserialize<'de> for MemoryRevisionEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MemoryRevisionEntry
impl RefUnwindSafe for MemoryRevisionEntry
impl Send for MemoryRevisionEntry
impl Sync for MemoryRevisionEntry
impl Unpin for MemoryRevisionEntry
impl UnsafeUnpin for MemoryRevisionEntry
impl UnwindSafe for MemoryRevisionEntry
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