pub struct Edge {
pub src: String,
pub dst: String,
pub relation: String,
pub weight: f64,
pub created_at: i64,
}Expand description
A directed, weighted edge between two nodes in the memory graph.
Fields§
§src: StringID of the source node.
dst: StringID of the destination node.
relation: StringSemantic relationship label (e.g. "recalled", "leads_to").
weight: f64Importance or strength of the relationship, conventionally in [0.0, 1.0].
created_at: i64Unix-millisecond timestamp when the edge was created or last updated.
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
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