pub struct Edge {
pub id: EdgeId,
pub etype: String,
pub src: NodeId,
pub dst: NodeId,
pub props: BTreeMap<String, Ipld>,
pub extra: BTreeMap<String, Ipld>,
}Expand description
A typed, directed link between two Nodes.
Fields§
§id: EdgeIdStable edge identity. Survives property edits.
etype: StringFree-form edge-type label ("knows", "cites", …).
src: NodeIdSource NodeId.
dst: NodeIdDestination NodeId.
props: BTreeMap<String, Ipld>Edge properties. Values are any DAG-CBOR value.
extra: BTreeMap<String, Ipld>Forward-compat extension map per SPEC §3.2.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
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