pub enum MemoryKind {
Lesson,
Attempt,
Decision,
Pattern,
Outcome,
}Expand description
What kind of knowledge a record holds.
A closed vocabulary, enforced by the schema as well as by this type,
following the same rule the analysis_runs runner and isolation tokens live
under: a value outside the known set is a corrupt write, not a new feature.
The five names are ADR-0013’s own list of what episodic memory is for. Free
text was the alternative and was declined — lesson, Lesson and lessons
would be three different kinds, none of them findable by a filter, and a
vocabulary that cannot be filtered cannot later be ranked.
Variants§
Lesson
Something established that a later session should not have to re-derive.
Attempt
An approach that was tried and did not work, and why.
Decision
A choice made, so it is not silently remade.
Pattern
A failure mode seen more than once.
Outcome
How a task actually ended.
Implementations§
Source§impl MemoryKind
impl MemoryKind
Trait Implementations§
Source§impl Clone for MemoryKind
impl Clone for MemoryKind
Source§fn clone(&self) -> MemoryKind
fn clone(&self) -> MemoryKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MemoryKind
Source§impl Debug for MemoryKind
impl Debug for MemoryKind
Source§impl<'de> Deserialize<'de> for MemoryKind
impl<'de> Deserialize<'de> for MemoryKind
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>,
Source§impl Display for MemoryKind
impl Display for MemoryKind
impl Eq for MemoryKind
Source§impl FromStr for MemoryKind
impl FromStr for MemoryKind
Source§impl Ord for MemoryKind
impl Ord for MemoryKind
Source§fn cmp(&self, other: &MemoryKind) -> Ordering
fn cmp(&self, other: &MemoryKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MemoryKind
impl PartialEq for MemoryKind
Source§impl PartialOrd for MemoryKind
impl PartialOrd for MemoryKind
Source§impl Serialize for MemoryKind
impl Serialize for MemoryKind
impl StructuralPartialEq for MemoryKind
Auto Trait Implementations§
impl Freeze for MemoryKind
impl RefUnwindSafe for MemoryKind
impl Send for MemoryKind
impl Sync for MemoryKind
impl Unpin for MemoryKind
impl UnsafeUnpin for MemoryKind
impl UnwindSafe for MemoryKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.