pub struct GraphEdgeDto {
pub from_id: String,
pub to_id: String,
pub kind: &'static str,
pub label: String,
}Expand description
One graph edge. kind is relation | fact | has_statement |
mentions for the typed-graph projections, or one of the eight
memory↔memory link names (caused | followed_by | derived_from |
similar_to | contradicts | supports | references | part_of).
Fields§
§from_id: String§to_id: String§kind: &'static str§label: StringPredicate / relation-type label; empty for mentions. For a
memory↔memory edge it repeats the kind name, so a renderer can label
every edge uniformly off label.
Trait Implementations§
Source§impl Debug for GraphEdgeDto
impl Debug for GraphEdgeDto
Source§impl From<GraphEdge> for GraphEdgeDto
impl From<GraphEdge> for GraphEdgeDto
Auto Trait Implementations§
impl Freeze for GraphEdgeDto
impl RefUnwindSafe for GraphEdgeDto
impl Send for GraphEdgeDto
impl Sync for GraphEdgeDto
impl Unpin for GraphEdgeDto
impl UnsafeUnpin for GraphEdgeDto
impl UnwindSafe for GraphEdgeDto
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