pub struct Edge {
pub src: Name,
pub tgt: Name,
pub kind: Name,
pub name: Option<Name>,
}Expand description
A binary edge between two vertices.
Edges are directed: they go from src to tgt. The kind determines
the structural role (e.g., "prop", "record-schema"), and name
provides an optional label (e.g., the property name).
Fields§
§src: NameSource vertex ID.
tgt: NameTarget vertex ID.
kind: NameEdge kind (e.g., "prop", "record-schema").
name: Option<Name>Optional edge label (e.g., a property name like "text").
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
Source§impl Ord for Edge
impl Ord for Edge
Source§impl PartialOrd for Edge
impl PartialOrd for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
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