pub struct Edge {
pub source: NodeId,
pub target: NodeId,
pub kind: String,
pub line: Option<u32>,
pub attrs: Attributes,
}Fields§
§source: NodeId§target: NodeId§kind: StringThe plugin’s vocabulary — “uses”/“contains”/“reexports”/… today; “calls”/“reads”/“writes”/… later. Not interpreted by the core.
line: Option<u32>1-based line in the source node’s file where this edge is declared
(e.g. the use/import statement). None when the plugin can’t place
it (synthetic/aggregated edges). Lets check point a cycle violation at
a concrete spot to break. Omitted from JSON when absent.
attrs: AttributesFree-form attributes (e.g. external, or language-specific keys),
described by the level’s edge_attributes dictionary. Flattened into
the edge JSON object.
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
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