pub struct Triple {
pub id: String,
pub subject: EntityId,
pub predicate: String,
pub object: EntityId,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
pub confidence: f32,
pub namespace: String,
pub source_memory_id: Option<String>,
}Expand description
A temporal triple: subject -predicate-> object with validity. The
valid_to field expresses invalidation (None = still current).
Fields§
§id: StringThe edge record id (backend-assigned).
subject: EntityIdThe source entity.
predicate: StringThe relationship ("depends_on", "uses", "decided"…).
object: EntityIdThe target entity.
valid_from: Option<String>When the fact became true (epoch-secs string).
valid_to: Option<String>When it stopped being true (None = still current).
confidence: f32Confidence score (0.0–1.0).
namespace: StringOwning namespace.
source_memory_id: Option<String>The memory this fact was extracted from, when known.
Trait Implementations§
impl StructuralPartialEq for Triple
Auto Trait Implementations§
impl Freeze for Triple
impl RefUnwindSafe for Triple
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl UnsafeUnpin for Triple
impl UnwindSafe for Triple
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