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 Forget for Link
impl Freeze for Linkwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, PropertyValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PropertyValue)>>: Freeze,
impl Move for Link
impl RefUnwindSafe for Link
impl Send for Linkwhere
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for Linkwhere
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for Link
impl UnsafeUnpin for Linkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, PropertyValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PropertyValue)>>: UnsafeUnpin,
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