pub struct MemoryEntry { /* private fields */ }Expand description
One thing worth remembering.
It carries a name, because an entry nothing can point at is a fact with no place in an argument. What the name is belongs to whoever writes it, and keeping it stable is what lets a later session explain today’s entry in terms of one written months ago.
The summary is capped, and deliberately short of anything that could hold a conversation. What is remembered is what was decided and why; the record of who said what is the transcript’s job, and a memory that swallowed transcripts would be a slower way to read them rather than a way to navigate what they meant.
Implementations§
Source§impl MemoryEntry
impl MemoryEntry
pub fn new( id: MemoryEntryId, kind: MemoryEntryKind, summary: impl Into<String>, provenance: MemoryProvenance, detail: Attributes, ) -> Result<Self, DomainError>
pub fn with_evidence( self, evidence: impl IntoIterator<Item = MemoryEvidence>, ) -> Self
Sourcepub fn id(&self) -> &MemoryEntryId
pub fn id(&self) -> &MemoryEntryId
What this entry is called, so a relation can point at it.
pub const fn kind(&self) -> MemoryEntryKind
pub fn summary(&self) -> &str
pub fn provenance(&self) -> &MemoryProvenance
pub fn evidence(&self) -> &[MemoryEvidence]
pub fn detail(&self) -> &Attributes
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
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 MemoryEntry
impl Debug for MemoryEntry
Source§impl<'de> Deserialize<'de> for MemoryEntry
impl<'de> Deserialize<'de> for MemoryEntry
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
impl Eq for MemoryEntry
Source§impl PartialEq for MemoryEntry
impl PartialEq for MemoryEntry
Source§impl Serialize for MemoryEntry
impl Serialize for MemoryEntry
impl StructuralPartialEq for MemoryEntry
Auto Trait Implementations§
impl Freeze for MemoryEntry
impl RefUnwindSafe for MemoryEntry
impl Send for MemoryEntry
impl Sync for MemoryEntry
impl Unpin for MemoryEntry
impl UnsafeUnpin for MemoryEntry
impl UnwindSafe for MemoryEntry
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