pub struct ContextEdge {
pub kind: String,
pub provenance: String,
pub confidence: Option<f64>,
pub node: String,
}Expand description
One incident edge as seen from the subject: the relationship, its provenance, and the node on the other end. Owned/round-trippable for caching.
Fields§
§kind: StringEdge kind token (e.g. calls, references).
provenance: StringHow the edge was produced (derived | authored | inferred).
confidence: Option<f64>Confidence score, present only for inferred edges.
node: StringThe natural key of the node at the other end.
Trait Implementations§
Source§impl Clone for ContextEdge
impl Clone for ContextEdge
Source§fn clone(&self) -> ContextEdge
fn clone(&self) -> ContextEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextEdge
impl Debug for ContextEdge
Source§impl<'de> Deserialize<'de> for ContextEdge
impl<'de> Deserialize<'de> for ContextEdge
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 PartialEq for ContextEdge
impl PartialEq for ContextEdge
Source§impl Serialize for ContextEdge
impl Serialize for ContextEdge
impl StructuralPartialEq for ContextEdge
Auto Trait Implementations§
impl Freeze for ContextEdge
impl RefUnwindSafe for ContextEdge
impl Send for ContextEdge
impl Sync for ContextEdge
impl Unpin for ContextEdge
impl UnsafeUnpin for ContextEdge
impl UnwindSafe for ContextEdge
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