pub struct Edge {
pub id: Uuid,
pub src: Uuid,
pub dst: Uuid,
pub rel: String,
pub fact: String,
pub attrs: Value,
pub group_id: String,
pub valid_at: Option<TimestampMs>,
pub invalid_at: Option<TimestampMs>,
pub created_at: TimestampMs,
pub expired_at: Option<TimestampMs>,
}Expand description
A fact edge as stored (the “fat edge”).
Fields§
§id: UuidUUIDv7 identity.
src: UuidSource node.
dst: UuidDestination node.
rel: StringRelation label.
fact: StringNatural-language fact sentence.
attrs: ValueArbitrary JSON attributes.
group_id: StringNamespace.
valid_at: Option<TimestampMs>Event time: fact became true.
invalid_at: Option<TimestampMs>Event time: fact stopped being true.
created_at: TimestampMsSystem time: first believed.
expired_at: Option<TimestampMs>System time: belief retracted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
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 StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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