pub struct GraphEdge {
pub from_id: [u8; 16],
pub to_id: [u8; 16],
pub kind: u8,
pub label: String,
}Expand description
One graph edge. kind: 0 = Relation, 1 = Fact, 2 = HasStatement,
3 = Mentions, 4..=11 = the memory↔memory builtin kinds in EdgeKind order
(4 + EdgeKind as u8), i.e. 4 = Caused, 5 = FollowedBy, 6 = DerivedFrom,
7 = SimilarTo, 8 = Contradicts, 9 = Supports, 10 = References, 11 = PartOf.
The kind byte alone identifies the link — there is no companion field.
Fields§
§from_id: [u8; 16]§to_id: [u8; 16]§kind: u8§label: StringPredicate / relation-type label; empty for Mentions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphEdge
impl<'de> Deserialize<'de> for GraphEdge
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 GraphEdge
Auto Trait Implementations§
impl Freeze for GraphEdge
impl RefUnwindSafe for GraphEdge
impl Send for GraphEdge
impl Sync for GraphEdge
impl Unpin for GraphEdge
impl UnsafeUnpin for GraphEdge
impl UnwindSafe for GraphEdge
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