pub struct Edge {
pub id: i64,
pub source: AgentId,
pub target: AgentId,
pub edge_type: EdgeType,
pub created_at: DateTime<Utc>,
pub metadata: Option<Value>,
}Expand description
A recorded directed edge between two agents in the topology graph.
Fields§
§id: i64Auto-assigned monotonically increasing identifier.
source: AgentIdThe agent that originates the relationship.
target: AgentIdThe agent that is the target of the relationship.
edge_type: EdgeTypeThe kind of relationship.
created_at: DateTime<Utc>When this edge was recorded.
metadata: Option<Value>Optional structured metadata attached at emission time.
Trait Implementations§
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