pub struct MemoryRelationSpec {
pub from: String,
pub to: String,
pub rel: String,
pub semantic_class: String,
pub why: Option<String>,
pub confidence: Option<String>,
pub sequence: Option<u32>,
}Expand description
A directed link between two things the memory holds.
from and to name entry ids from this record, or ids the memory already
holds — not evidence declared alongside, which the kernel resolves after
relations. Arrived with its first consumer, like every field here: what
the contract carries is the subset a consumer has needed, not the kernel’s
full relation vocabulary.
Fields§
§from: String§to: String§rel: StringThe relation, in the kernel’s naming: supports, conflicts_with, …
semantic_class: Stringstructural or evidential. The kernel requires a non-structural
relation to carry confidence and a why — a claimed link without a
stated reason is exactly what a memory must not hold.
why: Option<String>§confidence: Option<String>§sequence: Option<u32>Trait Implementations§
Source§impl Clone for MemoryRelationSpec
impl Clone for MemoryRelationSpec
Source§fn clone(&self) -> MemoryRelationSpec
fn clone(&self) -> MemoryRelationSpec
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 MemoryRelationSpec
impl Debug for MemoryRelationSpec
Source§impl<'de> Deserialize<'de> for MemoryRelationSpec
impl<'de> Deserialize<'de> for MemoryRelationSpec
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 MemoryRelationSpec
Source§impl PartialEq for MemoryRelationSpec
impl PartialEq for MemoryRelationSpec
Source§impl Serialize for MemoryRelationSpec
impl Serialize for MemoryRelationSpec
impl StructuralPartialEq for MemoryRelationSpec
Auto Trait Implementations§
impl Freeze for MemoryRelationSpec
impl RefUnwindSafe for MemoryRelationSpec
impl Send for MemoryRelationSpec
impl Sync for MemoryRelationSpec
impl Unpin for MemoryRelationSpec
impl UnsafeUnpin for MemoryRelationSpec
impl UnwindSafe for MemoryRelationSpec
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