pub struct NewEdge {
pub source: AgentId,
pub target: AgentId,
pub edge_type: EdgeType,
pub metadata: Option<Value>,
}Expand description
Input for recording a new directed edge between two agents.
Fields§
§source: AgentIdThe agent that originates the relationship.
target: AgentIdThe agent that is the target of the relationship.
edge_type: EdgeTypeThe kind of relationship.
metadata: Option<Value>Optional structured metadata (e.g. graph name, reason, key names).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewEdge
impl RefUnwindSafe for NewEdge
impl Send for NewEdge
impl Sync for NewEdge
impl Unpin for NewEdge
impl UnsafeUnpin for NewEdge
impl UnwindSafe for NewEdge
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