pub struct EdgeIr {
pub kind: EdgeKind,
pub from_label: String,
pub from_key: String,
pub to_label: String,
pub to_key: String,
}Expand description
A relationship between two nodes in the IR.
We refer to nodes by a stable “key” string rather than by numeric IDs:
- File:
schema::NodeLabel::File+path - Module:
Module.name+Module.path - Function:
Function.fqn - Class:
Class.fqn - Property:
Property.fqn - ApiEndpoint:
"{methods.join(\",\")} {path}" - Behaviour:
Behaviour.name - Callback:
Callback.fqn - ExternalApi:
base_url+norm_pathorExternalApi.name
Fields§
§kind: EdgeKind§from_label: StringLabel of the source node (e.g. “File”, “Module”, “Function”).
from_key: StringStable key identifying the source node (see comment above).
to_label: StringLabel of the target node.
to_key: StringStable key identifying the target node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeIr
impl<'de> Deserialize<'de> for EdgeIr
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 EdgeIr
impl RefUnwindSafe for EdgeIr
impl Send for EdgeIr
impl Sync for EdgeIr
impl Unpin for EdgeIr
impl UnsafeUnpin for EdgeIr
impl UnwindSafe for EdgeIr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more