Skip to main content

TraceImportPathOutput

Type Alias TraceImportPathOutput 

Source
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: ImportPathTraceSchemaVersion

Wire-shape version of this payload.

§from: String

The module the walk started from, root-relative.

§to: String

The module the walk was looking for, root-relative.

§reachable: bool

Whether to is reachable from from by following import edges.

§hops: usize

Number 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: String

Human-readable summary of the outcome.