Skip to main content

ImportPathTrace

Type Alias ImportPathTrace 

Source
pub type ImportPathTrace = ImportPathTrace;
Expand description

Aliased Type§

pub struct ImportPathTrace {
    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.