pub type TraceImportPathOutput = ImportPathTrace;Expand description
Concrete import-path trace output returned by typed programmatic runs.
Aliased Type§
pub struct TraceImportPathOutput {
pub schema_version: ImportPathTraceSchemaVersion,
pub from: String,
pub to: String,
pub reachable: bool,
pub hops: usize,
pub path: Vec<ImportPathHop>,
pub reason: String,
}Fields§
§schema_version: ImportPathTraceSchemaVersionWire-shape version of this payload.
from: StringThe module the walk started from, root-relative.
to: StringThe module the walk was looking for, root-relative.
reachable: boolWhether to is reachable from from by following import edges.
hops: usizeNumber of import edges on the reported route. 0 both when the two ends
are the same module and when there is no route at all.
path: Vec<ImportPathHop>The route, in import order. Empty whenever hops is 0.
reason: StringHuman-readable summary of the outcome.