pub struct Link {
pub id: Id128,
pub namespace: String,
pub source: Id128,
pub target: Id128,
pub relation: EdgeRelation,
pub properties: BTreeMap<String, PropertyValue>,
pub weight: f64,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub deleted_at: Option<Timestamp>,
}Expand description
A directed, typed edge between two entities (or cross-substrate nodes).
weight must be finite and in [0.0, 1.0]. When the serde feature is
enabled, deserialization rejects out-of-range or non-finite weights.
Fields§
§id: Id128Unique edge identifier.
namespace: StringNamespace that owns and isolates this edge.
source: Id128Source node identifier.
target: Id128Target node identifier.
relation: EdgeRelationClosed relation type that semantically describes this edge.
properties: BTreeMap<String, PropertyValue>Arbitrary structured metadata attached to this edge.
weight: f64Numeric edge weight in the range [0.0, 1.0]; 1.0 means definitional strength.
created_at: TimestampWall-clock time when this edge was created.
updated_at: TimestampWall-clock time of the most recent update.
deleted_at: Option<Timestamp>Set when the edge is soft-deleted; absent means active.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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